Hi, I"m following the C9 instructions to get postgres installed on my rails app instead of sqlite3 and it isn’t working.https://community.c9.io/t/setting-up-postgresql
I’ve gotten all the way down to here:
sudo sudo -u postgres psql
postgres-# \password postgres
Enter new password:
Then you can connect with username “postgres” and the password you set. Here’s an example in PHP:
But that’s it. Nothing for rails and I can’t get this conversion done. In my rails app, I get this PG::ConnectionBad: FATAL:
FATAL: Peer authentication failed for user “username”
I’ve tried documentation from two other sources and am getting nowhere. Please update your documentation for ruby on rails specifically or provide instructions here.
I’ve also tried this: https://github.com/Aerogami/guides/wiki/Cloud9-workspace-setup-with-Rails-and-Postgresql and it has failed as well.