使用ruby版本1.8.4推送此rails应用程序3.2.13
我已经运行了“rvm install ruby ruby-1.8.4”
将我的gemfile更改为包括: ruby'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'
谢谢!
答案 0 :(得分:2)
Ruby 2.2.0给我带来了麻烦,尝试使用Ruby 2.1.0并在你的gemfile中指定它:
source 'https://rubygems.org'
ruby '2.1.0'