我需要在我的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