我已经将我的应用程序从ruby 1.9.2升级到heroku上的ruby 1.9.3。Ruby版本在Heroku上不升级
我跟着它在Heroku上的文章: https://devcenter.heroku.com/articles/ruby-versions
当我部署了我的申请,我没有得到任何错误:
> -----> Ruby/Rails app detected
> -----> Using Ruby version: ruby-1.9.3
> -----> Installing dependencies using Bundler version 1.2.0.rc.2 Running: bundle install --without development:test --path
> vendor/bundle --binstubs bin/ --deployment Fetching gem metadata from
> http://rubygems.org/....... Fetching gem metadata from
> http://rubygems.org/.. Using rake (0.9.2.2) Using i18n (0.6.0)
> ..............
> -----> Discovering process types Procfile declares types -> worker Default types for Ruby/Rails -> console, rake, web
> -----> Compiled slug size is 27.0MB
> -----> Launching... done, v157 http://riskyshower.herokuapp.com deployed to Heroku
但应用程序不能正常启动,如果我尾日志,我看到以下内容:
2012-08-16T10:21:26+00:00 heroku[router]: Error H10 (App crashed) -> GET my_domain.me/ dyno= queue= wait= service= status=503 bytes=
2012-08-16T10:21:27+00:00 heroku[router]: Error H10 (App crashed) -> GET my_domain.me/favicon.ico dyno= queue= wait= service= status=503 bytes=
我不能得到任何更多的信息,告诉我什么是错的,但我想不是招红宝石”牛逼了正确升级,因为当我这样做:
heroku run "ruby -v"
Running ruby -v attached to terminal... up, run.1
ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-linux]
当它应该是1.9.3
在我的Gemfile顶我:
source 'http://rubygems.org'
ruby '1.9.3'
我使用最新版本捆绑的:
bundle -v
Bundler version 1.2.0.rc.2
我必须红宝石我猜(之类的文章中)正确的路径:
heroku config -s | grep PATH
PATH=vendor/bundle/ruby/1.9.1/bin:/usr/local/bin:/usr/bin:/bin:bin
任何想法,我应该运行以强制升级到Ruby 1.9.3?
谢谢!
我在我的红宝石PATH中没有bin/path,请参阅我的回答:)感谢您的帮助! – 2012-08-17 06:11:01