我在 database.yml 中有以下内容
production:
adapter: postgresql
database: dbname
host: host.compute-1.amazonaws.com
username: user
password: pass_word
DATABASE_URL: postgres://user:pass_word@host.compute-1.amazonaws.com:5432/dbname
但是在 git push heroku master 上,我收到以下错误。
could not connect to server: Connection refused
Is the server running on host "127.0.0.1" and accepting
TCP/IP connections on port 5432?
我是否也需要对其他环境进行更改?