Capistrano Postgresql: Fatal: Peer Authentication Failed For User

Posted by Weston Ganger

I had the following problem when deploying to production with capistrano

Capistrano postgresql: FATAL: Peer authentication failed for user

The fix was to add a host field under production for Postgres in config/database.yml

So if your database is on the same server then add:

host: localhost

If your database is on a different server then use:

host: yourDatabaseServerIP

Article Topic:Software Development - Rails

Date:August 20, 2014

Recommended Posts

Contact

604-309-8713
info@solidfoundationwebdev.com

Send Me A Message

I would love to get in touch and talk about your next project. Feel free to send a message and I will get back to you shortly.

Get Connected