playframework 2.0 - Unable to connect to Heroku Postgres from Play 2.3 -
i have play 2.3 app in java. app, able connect local postgres server.
but unable connect heroku postgres server.
i have next settings in application.conf:
db.default.driver=org.postgresql.driver db.default.url="jdbc:postgresql://ec2test.amazonaws.com:5432/rwerwerwer" db.default.user=eerwerwerer db.default.password="5345fdwfdsvfvsdfsdfds"
i getting next error:
caused by: org.postgresql.util.psqlexception: fatal: no pg_hba.conf entry ho st "172.56.17.147", user "eerwerwerer", database "rwerwerwer", ssl off
from pgadim iii, able successful connect heroku database.
while adding heroku config, got:
**! no app specified.**
follow these steps.
things remember:
use heroku commands within main directory.use database connection as:
db.default.driver=org.postgresql.driver db.default.url=${?database_url}
no need username , password.
no need procfile. heroku playframework-2.0 heroku-postgres
No comments:
Post a Comment