1

我从 Rails 5.2 更新到 Rails 6.0。heroku 上的升级问题是已知的:

heroku 文档

部署后:

remote: -----> Using Ruby version: ruby-2.6.1
remote: -----> Installing dependencies using bundler 2.0.1

Gemfile.lock:(当然我也在本地更新了捆绑器)

bundler (2.0.1)

procfile

web: bundle exec bin/rails server -p $PORT -e $RAILS_ENV

删除 Gemfile.lock 并重新运行bundle update并重新部署到 heroku,但仍然出现此错误,它说我正在使用 ruby​​ 2.6.0:问题可能就在这里,但不知道如何纠正它:

2019-06-03T19:04:00.924967+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/bundler-2.0.1/lib/bundler/lockfile_parser.rb:108:in `warn_for_outdated_bundler_version': You must use Bundler 2 or greater with this lockfile. (Bundler::LockfileError)

在部署消息中还:

2019-06-03T19:04:00.925009+00:00 app[web.1]: from /app/config/boot.rb:3:in `<top (required)>'

Heroku 表示:https ://devcenter.heroku.com/changelog-items/1563

在我的Gemfile.lock我有:

RUBY VERSION
   ruby 2.6.1p33

BUNDLED WITH
   2.0.1

尽管如此,该应用程序还是在 heroku 上崩溃了。

4

1 回答 1

1

在这方面得到了 Heroku 的大力支持。我需要将procfile(全部小写)的名称更改为Procfile大写 C。

除了我在问题中提供的链接之外,请看这里:

https://devcenter.heroku.com/articles/bundler-version#known-upgrade-issues

希望这可以帮助,

于 2019-06-04T06:34:00.410 回答