[英]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. 我在heroku上创建了一个临时应用程序,并希望它在DEV模式下运行。 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.
另外,我将procfile设置为使用application.production.conf,但我希望它在我的暂存应用程序中使用application.staging.conf。 How can I do this?
我怎样才能做到这一点?
Use an config variable to set this. 使用config变量来设置它。 Like:
喜欢:
Procfile: 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
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.