gpt4 book ai didi

ruby-on-rails - 无法在 Heroku 上启动全新的 Rails 应用程序

转载 作者:行者123 更新时间:2023-12-04 08:22:36 25 4
gpt4 key购买 nike

尝试使用 heroku 启动一个全新的 rails 项目,按照 https://devcenter.heroku.com/articles/getting-started-with-rails5 中的步骤进行操作和 https://devcenter.heroku.com/articles/getting-started-with-rails6 .两次尝试推送到 heroku master 时,我都得到了

remote: -----> Detecting rake tasks
remote:
remote: !
remote: ! Could not detect rake tasks
remote: ! ensure you can run `$ bundle exec rake -P` against your app
remote: ! and using the production group of your Gemfile.
remote: ! /tmp/build_4403463c/config/boot.rb:5:in `require': cannot load such file -- bootsnap/setup (LoadError)
remote: ! from /tmp/build_4403463c/config/boot.rb:5:in `<top (required)>'
remote: ! from /tmp/build_4403463c/bin/rake:7:in `require_relative'
remote: ! from /tmp/build_4403463c/bin/rake:7:in `<main>'
remote: !
我试图包围 bootsnap/setup与救援,它仍然击中这个块。

最佳答案

找到了解决办法,在 Gemfile.lock我换了 RUBY VERSIONruby 2.6.6p146BUNDLED WITH1.17.3

关于ruby-on-rails - 无法在 Heroku 上启动全新的 Rails 应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/65426946/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com