gpt4 book ai didi

ruby-on-rails - 狂欢 : heroku deploy error

转载 作者:行者123 更新时间:2023-12-03 00:25:31 24 4
gpt4 key购买 nike

我不断收到以下信息:

remote:        Gem::InstallError: spree_core requires Ruby version >= 2.1.0.
remote: An error occurred while installing spree_core (3.0.4), and Bundler cannot
remote: continue.
remote: Make sure that `gem install spree_core -v '3.0.4'` succeeds before bundling.

当我运行时

gem install spree_code -v '3.0.4' 

它成功了,之后当我再次运行 git push heroku master 时,我得到了完全相同的错误。

rbenv versions 

显示如下:

2.2.2 (set by /Users/Martijn/.rbenv/version)

最佳答案

Heroku 需要 Gemfile 中定义的 ruby​​ 版本,例如: ruby “2.2.1”。更多信息:https://devcenter.heroku.com/articles/ruby-versions .

关于ruby-on-rails - 狂欢 : heroku deploy error,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32310439/

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