【问题标题】:Rails v6.0.0 push to Heroku fails - Rake & Bundler error msgsRails v6.0.0 推送到 Heroku 失败 - Rake & Bundler 错误消息
【发布时间】:2019-09-04 21:29:43
【问题描述】:

这是我第一次尝试将 Rails v6.0.0 应用程序推送到 Heroku。错误消息是:

Could not detect rake tasks
ensure you can run `$ bundle exec rake -P` against your app
and using the production group of your Gemfile.
Activating bundler (2.0.1) failed:
Could not find 'bundler' (2.0.1) required by your /tmp/build_94b6a9e04d812c465a5480f59429532e/Gemfile.lock.
To update to the latest version installed on your system, run `bundle update --bundler`.
To install the missing version, run `gem install bundler:2.0.1`
Checked in 'GEM_PATH=vendor/bundle/ruby/2.5.0', execute `gem env` for more information
To install the version of bundler this project requires, run `gem install bundler -v '2.0.1'`
  • 我可以运行“bundle exec rake -P”,没问题。
  • 我已验证安装了 bundler 2.0.1,没问题。

建议?

【问题讨论】:

    标签: rake bundler ruby-on-rails-6


    【解决方案1】:

    A similar bugreport on the bundler repo 提到 bundler 2.0.1 与 heroku 冲突。我从该评论中复制了以下修复说明:

    • gem install bundler -v 2.0.2
    • bundle update --bundler
    • 在您的存储库中提交并推送 Gemfile.lock 更改
    • 使用git push heroku master 部署

    【讨论】:

      猜你喜欢
      • 2018-07-09
      • 1970-01-01
      • 1970-01-01
      • 2011-10-27
      • 2019-02-13
      • 1970-01-01
      • 1970-01-01
      • 2021-04-14
      • 2020-01-01
      相关资源
      最近更新 更多