我正在努力在Heroku上推送我的应用程序的新版本。我收到与所用红宝石版本有关的错误消息:
当我键入
ruby-v
我明白了
ruby 2.5.1p57
但是,当我通过git push heroku master推送git时,我遇到以下错误:
remote: Command: 'set -o pipefail; curl -L --fail --retry 5 --retry-delay 1 --connect-timeout 3 --max-time 30 https://s3-external-1.amazonaws.com/heroku-buildpack-ruby/heroku-18/ruby-2.2.6.tgz -s -o - | tar zxf - ' failed on attempt 1 of 3.
remote: Command: 'set -o pipefail; curl -L --fail --retry 5 --retry-delay 1 --connect-timeout 3 --max-time 30 https://s3-external-1.amazonaws.com/heroku-buildpack-ruby/heroku-18/ruby-2.2.6.tgz -s -o - | tar zxf - ' failed on attempt 2 of 3.
remote: ! An error occured while installing ruby-2.2.6
remote: ! This version of Ruby is not available on Heroku-18.
为什么heroku试图安装ruby-2.2.6?如何安装ruby 2.5.1p15?我该如何解决这个问题?