I am trying to set up a postgres database in a Rails app in Cloud9.
I have followed the instructions here: https://docs.c9.io/setting_up_postgresql.html and set up
Found the solution. Needed to edit the pg_hba.conf file to change the authentication from peer to md5 like this:
local postgres postgres md5
It's hard to find the file as it can only be accessed via the terminal in cloud9. You cannot find it in the file tree.
If you type the following into postgres it will show you the location
SHOW hba_file;
You can then find and edit in in vim via the terminal.