如何在Heroku中设置框架ID部署Play!应用 [英] How to set framework id in a Heroku deployed Play! application
问题描述
为此,我遵循本参考页面,通过从本地计算机运行heroku run play id。然而,这不起作用,就像我再次执行相同的命令一样,它会告诉我该id仍然是空的。
因此,我研究了StackOverflow a位,并得到这个页面,据我所知,根据答案,我可以通过修改PLAY_OPTS变量来做到这一点,但我真的不明白这一点......所以如果有人能够清楚地向我解释,我真的很感激!非常感谢您,
可以看到 PLAY_OPTS
环境变量:
heroku config
其中应包括:
PLAY_OPTS => - %prod -Dprecompiled = true
你可以用类似的方法改变它:
heroku config:add PLAY_OPTS = - %foo -Dprecompiled = true
但是,您必须确保您也告诉Play应用程序不要尝试侦听jpda端口,否则它将无法在Heroku上启动。
my question is simple. I want to set the play framework 'id' in my heroku deployed copy, different than the one I have locally.
To do so, I followed this reference page by running 'heroku run play id' from my local computer. However, that didn't work, as if I executed again the same command, it would tell me that the id was still empty.
So, I researched in StackOverflow a bit, and got to this page in which I understand, according to an answer, that I can do so by modifying the PLAY_OPTS variable, but I dont really get it... So if someone could explain it to me clearly, I would really appreciate it!
Thanks a lot in advance,
Pepillo
You can see the PLAY_OPTS
environment variable with:
heroku config
Which should include:
PLAY_OPTS => --%prod -Dprecompiled=true
You can change that with something like:
heroku config:add PLAY_OPTS="--%foo -Dprecompiled=true"
But you will have to make sure that you also tell the Play app not to try and listen on the jpda port or it will fail to start on Heroku.
这篇关于如何在Heroku中设置框架ID部署Play!应用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!