1

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

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"
4

2 回答 2

2

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

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

于 2012-11-28T22:58:28.977 回答
0

它应该适用于雪松。

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

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

有关 Heroku 文档的更多信息

于 2012-11-27T20:14:49.247 回答