I followed the Scala Play 2.1.x tutorial to created a todolist application.
On local development environment + local Heroku Postgres: The evolution is executed automatically. The app works perfectly fine.
On Heroku, the evolution is not executed at all. Therefore, I will get a relation does not exist error.
Here is the Procfile
:
web: target/start -Dhttp.port=${PORT} -Ddb.default.url=${DATABASE_URL} -Ddb.default.driver=org.postgresql.Driver -DapplyEvolutions.default=true
Attempts
- Move
db.default.url
,db.default.driver
&applyEvolutions.default
toapplication.conf
. - Used instructions from the accepted answer in this question Errors in evolutions on Heroku. Connected to the remote Heroku Postgres DB from my local development machine and run the evolution - it works perfectly.
- I installed Play 2.2.1 and attempted the same tutorial, I encounter the same problem.
Since I am able to execute evolutions from my local dev machine onto the remote Heroku Postgres DB. The problem seems to happen only when it is on the Heroku environment.