【发布时间】:2015-08-29 04:42:27
【问题描述】:
我正在尝试将我的 heroku 应用迁移到 Cedar 14(如下:https://devcenter.heroku.com/articles/cedar-14-migration)
我的问题是 heroku 认为我正在使用 ruby v 2.1.1(我的机器在 ruby 2.2.2 上。这由 ruby -v 和 which ruby 确认(都返回 2.2.2)。
但是,当我尝试时:
heroku run ruby -v
返回是:
Running `ruby -v` attached to terminal... up, run.4550
ruby 2.1.1p76 (2014-02-24 revision 45161) [x86_64-linux]
我不知道如何让 heroku 认识到应该使用 ruby 2.2.2。它在我的 gem 文件中,我将其设置为默认值,并将其设置在列表顶部的 bash 配置文件中。
因此,我无法在 heroku 上推送迁移,因为旧版本的 ruby 不支持它。我收到此错误:
Only the most recent version of Ruby 2.1 is supported on Cedar-14
remote: ! Command: 'set -o pipefail; curl --fail --retry 3 --retry-delay 1 --connect-timeout 3 --max-time 30 https://s3-external-1.amazonaws.com/heroku-buildpack-ruby/cedar-14/ruby-2.1.1.tgz -s -o - | tar zxf - ' failed unexpectedly:
有谁知道如何让 heroku 识别 ruby v 2.2.2?
谢谢
【问题讨论】:
标签: ruby-on-rails ruby bash heroku