【问题标题】:Pushing rails app to heroku "failed unexpectedly"? [duplicate]将rails应用程序推送到heroku“意外失败”? [复制]
【发布时间】:2014-01-22 10:05:46
【问题描述】:

一直在用 ruby​​ 版本 1.8.4 推送这个 rails 应用程序 3.2.13

我已经运行了“rvm install ruby​​ ruby​​-1.8.4”

将我的 gemfile 更改为包括: 红宝石'1.8.4'

这里是终端错误:

ggeorgiev@ubuntu:~/projects/webshop$ git push heroku master
Fetching repository, done.
Counting objects: 5, done.
elta compression using up to 2 threads.
Compressing objects: 100% (3/3), done.
Writing objects: 100% (3/3), 323 bytes, done.
Total 3 (delta 2), reused 0 (delta 0)

-----> Ruby app detected
-----> Compiling Ruby/Rails
 !
 !     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/ruby-1.8.4.tgz -s -o - | tar zxf -' failed unexpectedly:
 !     
 !     gzip: stdin: unexpected end of file
 !     tar: Child returned status 1
  !     tar: Exiting with failure status due to previous errors
 !

 !     Push rejected, failed to compile Ruby app

To git@heroku.com:fathomless-sierra-3921.git
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'git@heroku.com:fathomless-sierra-3921.git'

谢谢!!

【问题讨论】:

  • 请切换到较新的 Ruby 版本。就连古老的 1.8.7 都暂时不支持了……
  • 我在 Ruby 2.2.0-dev 上收到此错误。

标签: ruby-on-rails ruby heroku deployment


【解决方案1】:

Ruby 2.2.0 给我带来了麻烦,请尝试使用 Ruby 2.1.0 并在您的 gemfile 中指定它:

    source 'https://rubygems.org'
    ruby '2.1.0'

【讨论】:

  • 哇...非常感谢:)
猜你喜欢
  • 1970-01-01
  • 2010-12-30
  • 1970-01-01
  • 1970-01-01
  • 2015-01-01
  • 1970-01-01
  • 1970-01-01
  • 2016-05-12
  • 2011-04-14
相关资源
最近更新 更多