我正试图跟随Rails教程,似乎无法让构建在Heroku上工作。
我的构建日志在这里:https://pastebin.com/pBnGkBXe
下面是我到目前为止尝试调试的错误:
! Could not detect rake tasks
! ensure you can run `$ bundle exec rake -P` against your app
! and using the production group of your Gemfile.在本地运行bundle exec rake -P 会在我的存储库上执行工作。
! /tmp/build_5f6ec788/config/boot.rb:4:in `require': cannot load such file -- bootsnap/setup (LoadError)
! from /tmp/build_5f6ec788/config/boot.rb:4:in `<top (required)>'
! from /tmp/build_5f6ec788/bin/rake:3:in `require_relative'
! from /tmp/build_5f6ec788/bin/rake:3:in `<main>'我不知道这里发生了什么。
我试着用Rails默认Gemfile和Rails教程Gemfile运行这个程序,结果导致了同样的引导错误。
有人能就如何让这个Heroku部署工作提出建议吗?
谢谢!
发布于 2020-12-22 23:11:32
弄明白了。
我在运行Rubyv2.6.3。升级到2.7.2并修复Gemfile中的这个问题,成功地部署到Heroku。
https://stackoverflow.com/questions/65413742
复制相似问题