Cloud9 postgres

后端 未结 7 1409
我在风中等你
我在风中等你 2020-12-01 03:49

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

相关标签:
7条回答
  • 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.

    0 讨论(0)
提交回复
热议问题