我正在尝试在 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
我该如何解决?
最佳答案
来自 http://news.railstutorial.org/heroku-update/
“Heroku 最近宣布的 Cedar-14 堆栈与每个 Ruby 序列的最新版本不兼容,这意味着(例如)它适用于 Ruby 2.1.4 但不适用于 2.1.3。不幸的是,这使得它与许多系统上的本地 Ruby 版本不兼容”
看来您需要将 Ruby 更新到最新版本。
关于ruby-on-rails - 使用 ruby 2.1.0 和 rails 4.2.0 错误创建 Heroku 应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27786484/