如何在Heroku中设置框架ID部署Play!应用 [英] How to set framework id in a Heroku deployed Play! application

查看:91
本文介绍了如何在Heroku中设置框架ID部署Play!应用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的问题很简单。我想在我的heroku部署副本中设置播放框架'id',这与我在本地部署的副本不同。



为此,我遵循本参考页面,通过从本地计算机运行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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆