这是我第一次尝试将 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'`
- 我可以运行"捆绑执行耙-P",没问题。
- 我已经验证了捆绑程序 2.0.1 已安装,没问题。
建议?
捆绑器存储库上的类似错误报告提到bundler 2.0.1
与 heroku 冲突。我从该评论中复制了以下修复说明:
gem install bundler -v 2.0.2
bundle update --bundler
- 提交并推送存储库中的 Gemfile.lock 更改
- 使用
git push heroku master
进行部署