当我为我的Ruby应用程序执行git push heroku master时,出现以下错误。
remote: -----> Compiling Ruby/Rails
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.3.8.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.3.8.tgz -s -o - | tar zxf - ' failed on attempt 2 of 3.
remote:
remote: !
remote: ! An error occurred while installing ruby-2.3.8
remote: !
remote: ! This version of Ruby is not available on Heroku-18.
The minimum supported version
remote: ! of Ruby on the Heroku-18 stack can found at:
remote: !
remote: ! https://devcenter.heroku.com/articles/ruby-
support#supported-runtimes
remote: !
remote: ! Push rejected, failed to compile Ruby app.
remote:
remote: ! Push failed
remote: Verifying deploy...
我已经更新了ruby版本,并将ruby 2.5.1设置为默认
rvm list
=* ruby-2.5.1 [ x86_64 ]
'=>' - current
'=*' - current && default
'*' - default
我正在使用最新的红宝石版本
红宝石-v
红宝石2.5.1p57(2018-03-29修订版63029)[x86_64-darwin17]
我的gemfile也是最新的
source 'https://rubygems.org'
ruby '2.5.1'
gem 'rails', '5.1.6'
gem 'bcrypt', '3.1.12'
gem 'faker', '1.7.3'
gem 'will_paginate', '3.1.6'
gem 'bootstrap-will_paginate', '1.0.0'
gem 'bootstrap-sass', '3.3.7'
gem 'puma', '3.9.1'
gem 'sass-rails', '5.0.6'
gem 'uglifier', '3.2.0'
gem 'coffee-rails', '4.2.2'
gem 'jquery-rails', '4.3.1'
gem 'turbolinks', '5.0.1'
gem 'jbuilder', '2.7.0'
...
答案 0 :(得分:0)
开始工作。问题是,即使我已将应用程序更新为2.5.1,我仍未成功添加并提交更改。
必须: git添加-A git commit -m“关于将应用程序更新到2.5.1的随机消息” git push heroku master