I have a Rails 4 app which I want to deploy and first I have to connect it to the DB. So I went to the Postgres console and ran:
create role somosprof with createdb createrole replication login password 'mySafePWSD';
And the user was properly created. Then I placed the configuration info into the config/database.yml file:
But when I run rake db:migrate I get the following error:
[root@somosp somosprofessores]# RAILS_ENV=production rake db:create
You no longer need to have jasmine.rake in your project, as it is now automatically loaded
from the Jasmine gem. To silence this warning, set "USE_JASMINE_RAKE=true" in your environment
or remove jasmine.rake.
FATAL: Peer authentication failed for user "somosprof"
What is going on? Please help me, this is very urgent and I have no idea on why it isn't working
These answers are provided by our Community. If you find them useful, show some love by clicking the heart.
If you run into issues leave a comment, or add your own answer to help others.