TomahawkPhant
TomahawkPhant

Reputation: 1160

How do I run a Play Framework 2 app in dev mode on Heroku?

I created a staging app on heroku, and would like it to run in DEV mode. Also, I have my procfile set to use application.production.conf, but I would like it to use application.staging.conf in my staging app. How can I do this?

Upvotes: 0

Views: 794

Answers (1)

James Ward
James Ward

Reputation: 29433

Use an config variable to set this. Like:

Procfile:

web: target/start -Dconfig.file=${CONFIG_FILE}

Then set the config for each environment:

heroku config:add --app my-staging CONFIG_FILE=application.staging.conf
heroku config:add --app my-prod CONFIG_FILE=application.production.conf

Upvotes: 2

Related Questions