Heroku找不到捆绑器错误

时间:2012-11-27 19:34:26

标签: ruby-on-rails ruby bundler ruby-1.8.7

我有一个使用Ruby 1.8.7-p352的旧Rails 2.3.8应用程序,我一直在尝试迁移到Heroku的雪松堆栈。一切都在开发中,部署很顺利,但是当我尝试访问该站点时,我收到了App Crashed错误。

2012-11-27T19:16:08+00:00 heroku[web.1]: Starting process with command `bundle exec thin start -p 58772 -e production`
2012-11-27T19:16:09+00:00 app[web.1]:   from /app/vendor/ruby-1.8.7/lib/ruby/site_ruby/1.8/rubygems/dependency.rb:256:in `to_spec'
2012-11-27T19:16:09+00:00 app[web.1]:   from /app/vendor/ruby-1.8.7/lib/ruby/site_ruby/1.8/rubygems.rb:1231:in `gem'
2012-11-27T19:16:09+00:00 app[web.1]: /app/vendor/ruby-1.8.7/lib/ruby/site_ruby/1.8/rubygems/dependency.rb:247:in `to_specs': Could not find bundler (>= 0) amongst [] (Gem::LoadError)
2012-11-27T19:16:09+00:00 app[web.1]:   from /app/vendor/bundle/1.8/bin/bundle:22
2012-11-27T19:16:10+00:00 heroku[web.1]: Process exited with status 1
2012-11-27T19:16:10+00:00 heroku[web.1]: State changed from starting to crashed

这是因为1.8.7不再受支持,还是有修复?

编辑:添加我的gemfile以回应评论。

source :gemcutter

ruby "1.8.7"
gem "rails",   "2.3.8"
gem "bundler", "1.2.2"
gem "thin"
gem "pg"

2 个答案:

答案 0 :(得分:2)

查看您的配置变量是否针对ruby 1.8.7进行了更新:

https://devcenter.heroku.com/articles/changing-ruby-version-breaks-path

答案 1 :(得分:0)

It should work on cedar.

您是否在Gemfile上指定了ruby版本?

source "https://rubygems.org"
ruby "1.8.7"
# ...

More info about this on the Heroku docs