我正在尝试在Heroku上创建一个应用程序,但当我尝试推送到Heroku时,我收到此错误:
remote: Compressing source files... done.
remote: Building source:
remote:
remote: -----> Ruby app detected
remote: -----> Compiling Ruby/Rails
remote: !
remote: ! An error occurred while installing Ruby ruby-2.1.0
remote: ! For supported Ruby versions see https://devcenter.heroku.com/articles/ruby-support#supported-runtimes
remote: ! Note: 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.0.tgz -s -o - | tar zxf - ' failed unexpectedly:
remote: !
remote: ! gzip: stdin: unexpected end of file
remote: ! tar: Child returned status 1
remote: ! tar: Error is not recoverable: exiting now
remote: !
remote:
remote: ! Push rejected, failed to compile Ruby app
我该如何解决这个问题?
答案 0 :(得分:2)
来自http://news.railstutorial.org/heroku-update/
" Heroku最近发布的Cedar-14堆栈与除了每个Ruby序列的最新版本之外的所有版本都不兼容,这意味着(例如)它适用于Ruby 2.1.4但不适用于2.1.3。不幸的是,这使得它与许多系统上的本地Ruby版本不兼容"
所以看起来你需要将Ruby更新到最新版本。
答案 1 :(得分:2)
Heroku不支持Ruby 2.1.0。查看https://devcenter.heroku.com/articles/ruby-support#ruby-versions以获取支持的版本列表。