2017-11-24 9 views
0

Michael Hartlのレールチュートリアルに従っており、Herokuに何かを展開しようとしています。私が実行するまですべてがうまくいくレールを使用してHerokuにデプロイするエラー

git push heroku master 

私はこのエラーが表示されます。

Counting objects: 211, done. 
Delta compression using up to 4 threads. 
Compressing objects: 100% (189/189), done. 
Writing objects: 100% (211/211), 36.50 KiB | 0 bytes/s, done. 
Total 211 (delta 78), reused 0 (delta 0) 
remote: Compressing source files... done. 
remote: Building source: 
remote: 
remote: -----> Ruby app detected 
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-16/ruby-2.0.0-p648.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-16/ruby-2.0.0-p648.tgz -s -o - | tar zxf - ' failed on attempt 2 of 3. 
remote: ! 
remote: !  An error occurred while installing ruby-2.0.0-p648 
remote: !  
remote: !  Heroku recommends you use the latest supported Ruby version listed here: 
remote: !  https://devcenter.heroku.com/articles/ruby-support#supported-runtimes 
remote: !  
remote: !  For more information on syntax for declaring a Ruby version see: 
remote: !  https://devcenter.heroku.com/articles/ruby-versions 
remote: !  
remote: !  
remote: !  Debug InformationCommand: '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-16/ruby-2.0.0-p648.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: !  Push rejected, failed to compile Ruby app. 
remote: 
remote: !  Push failed 
remote: Verifying deploy... 
remote: 
remote: ! Push rejected to secret-escarpment-31638. 
remote: 
To https://git.heroku.com/secret-escarpment-31638.git 
! [remote rejected] master -> master (pre-receive hook declined) 
error: failed to push some refs to 'https://git.heroku.com/secret-escarpment-31638.git' 

私はHerokuのはルビー2.0.0を実行することができないが、私は彼らのドキュメントをチェックし、2.0.0はまだHerokuの上で有効であることが判明し、それが原因だと推測しています。ここにリンクhttps://devcenter.heroku.com/articles/ruby-support#supported-runtimesがあります。

私はRailsの4.0.8とRuby 2.0.0

Gemfile

source 'https://rubygems.org' 
ruby '2.0.0' 
#ruby-gemset=railstutorial_rails_4_0 
gem 'rails', '4.0.8' 
gem 'bootstrap-sass', '2.3.2.0' 
gem 'sprockets', '2.11.0' 
group :development, :test do 
    gem 'sqlite3', '1.3.8' 
    gem 'rspec-rails', '2.13.1' 
end 
group :test do 
    gem 'selenium-webdriver', '2.35.1' 
    gem 'capybara', '2.1.0' 
# Uncomment this line on OS X. 
# gem 'growl', '1.0.3' 
# Uncomment these lines on Linux. 
# gem 'libnotify', '0.8.0' 
# Uncomment these lines on Windows. 
# gem 'rb-notifu', '0.0.4' 
# gem 'wdm', '0.1.0' 
end 
gem 'sass-rails', '4.0.3' 
gem 'uglifier', '2.1.1' 
gem 'coffee-rails', '4.0.1' 
gem 'jquery-rails', '3.0.4' 
gem 'turbolinks', '1.1.1' 
gem 'jbuilder', '1.0.2' 
group :doc do 
    gem 'sdoc', '0.3.20', require: false 
end 
group :production do 
    gem 'pg', '0.15.1' 
    gem 'rails_12factor', '0.0.2' 
end 

に予め

に感謝
+0

にプッシュした後、あなたのGemfileにルビーバージョンをコメントすることができます - 彼らのルビーのビルドパックで問題があります。あなたはこの問題について彼らのサポートに尋ねましたか? – unkmas

答えて

4

、あなたはログによると、コミットとそれはあなたのせいではありませんHerokuの

+0

これは完璧に機能しました。 – cds1995

+0

答えを受け入れる..... – Navin

0

Herokuのは、Rubyの2.0.0をサポートしていませんよ。エラーで言うように、どのルビーランタイムが動作するのかを見つけることができます。here

0

コメントruby '2.0.0'をGemfileに入れてherokuにプッシュします。それはテストサイトがあるので

関連する問題