无法使用RJB gem部署到Heroku应用程序 [英] Can't deploy to Heroku the app with RJB gem
问题描述
我设置了JAVA_HOME变量
heroku config:add JAVA_HOME = / usr / lib / jvm / java-6 -openjdk
检查到,heroku config显示这个变量的值为
,然后按下: p>
git push heroku master
仍然可以获得
pre $ JAVA_HOME未设置
错误,而bundler正在安装RJB gem。
我可以成功地将同一个源部署到另一个Heroku应用程序,和所有的环境变量是一样的。
有什么不对?
我有同样的问题,如果其他人想知道,这是Heroku告诉我的:
默认情况下,配置只有在运行时编译
应用程序时,才会提供变量。
您可以通过确保拥有最新的她oku gem
install,然后启用user_env_compile实验室标志
$ b $ $ heroku实验:启用user-env-compile
当gem安装时,这将使JAVA_HOME可用,希望
可以帮助你解决这个问题。
I've set the JAVA_HOME variable
heroku config:add JAVA_HOME=/usr/lib/jvm/java-6-openjdk
checked that heroku config shows this variable with value, then pushed:
git push heroku master
and still get
JAVA_HOME is not set
error while bundler is installing RJB gem.
I can successfully deploy the same source to another Heroku application, and all environment variables are the same.
What is wrong?
I had the same question, and in case anyone else wants to know, this is what Heroku told me:
By default the config variables aren't made available when the application is compiled - only at runtime.
You can change this by making sure you have the latest heroku gem install, then enable the user_env_compile lab flag
$ heroku labs:enable user-env-compile
this will make JAVA_HOME available when the gem installs, hopefully getting you past this issue.
这篇关于无法使用RJB gem部署到Heroku应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!