我需要在我的gemfile中指定ruby版本,但我在heroku中的应用程序使用的是旧版本1.0.7。如何在heroku中设置捆绑器版本?
如果我在我的gemfile中包含gem 'bundler', '1.3.2'
,那么当我推送到heroku时,它会失败。
Bundler could not find compatible versions for gem "bundler":
In Gemfile:
bundler (= 1.3.2)
Current Bundler version:
bundler (1.0.7)
Your version of Bundler is older than the one requested by the Gemfile.
Perhaps you need to update Bundler by running `gem install bundler`.
我也尝试运行heroku run "gem install bundler"
并且它返回权限错误。
ERROR: While executing gem ... (Gem::FilePermissionError)
You don't have write permissions into the /usr/ruby1.9.2/lib/ruby/gems/1.9.1
directory.
如何在Heroku中将Bundler版本设置为1.3.2以便我可以指定具体的ruby版本?
你在Cedar堆栈上吗? – 2013-03-12 09:54:47