I am trying to setup postgres database on heroku through play framework app but i am keep getting an error regarding my DATABASE_URL.
Stack trace: -
It seems you are mixing some Play 1 and Play 2 conventions. It appears you are using Play 2. In Play 2 the easiest way to set this up is to not use DATABASE_URL
in your application.conf
and instead just override the database config in your Procfile
:
web: target/start -Dhttp.port=$PORT -DapplyEvolutions.default=true -Ddb.default.driver=org.postgresql.Driver -Ddb.default.url=$DATABASE_URL
For a more detailed walk-through see my Play 2 Tutorial.