お世話になっております。
今、あるWeb DBをPlayで作成し、herokuにアップしたいのですが、
Postgresqlの接続がうまく行かず困ってます。
お分かりの方居られましたら、ご教示下さい。
●error contents
Caused by: org.postgresql.util.PSQLException: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections
error detail:
https://github.com/nitta4706/Nitta/blob/master/20190311(postgresql_connection_error)
●heroku config
=== Nitta-14776 Config Vars APP_ENV: heroku DATABASE_URL: postgres://zzzzzzzzzz(DB_USERNAME):dddddddddddd(DB_PASSWORD)@ssssssss:5432(DB_HOST)/eeeeeee(DB_DATABASE) DB_DATABASE: eeeeeee DB_HOST: ssssssss:5432 DB_PASSWORD: dddddddddddd DB_USERNAME: zzzzzzzzzz LANG: ja_JP.UTF-8 LOG_LEVEL: DEBUG TZ: Asia/Tokyo
●C:\Users\cccc\Desktop\Nitta(アプリ名)\conf\application.conf
detail:
https://github.com/nitta4706/Nitta/blob/master/20190311(appliction.conf)
●postgresql.conf
(中略) #-Connection Settings - listen_addresses = '*'
●pg_hba.conf
(中略) #IPv4 local connections: #host all all 127.0.0.1/32 md5 host all all 0.0.0.0/0 trust
以上、よろしくお願いします。
回答3件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2019/03/11 07:16 編集
退会済みユーザー
2019/03/11 07:24
2019/03/11 23:04 編集