【发布时间】:2018-01-27 17:19:18
【问题描述】:
当我运行“sbt ~run”时,我可以看到模式已按预期设置为 Dev。但是,当我运行“heroku local web”时,服务器以 Prod 模式运行。知道如何将其设置为开发模式吗?我是否必须使用 heroku config CLI 设置任何变量?我的目的是在推送到 Heroku git 之前先用 heroku local 进行测试。
已在我的 Procfile 中尝试过:
web: target/universal/stage/bin/myapp -Dhttps.port=${PORT} -Dhttp.port=disabled -Dhttps.keyStore=conf/generated.keystore -Dlogback.configurationFile=conf/logback.xml -Dapplication.mode=DEV
但它仍然显示 Prod。当服务器运行时,conf 文件使用“-Dconfig.resource=root-dev.conf”以编程方式设置。
【问题讨论】:
标签: scala heroku playframework sbt