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