gitを使って、herokuへデプロイしたいのですが、以下のような画面のままです。
rais4を使ってデプロイしたのですが、それと何か関係はあるでしょうか?
以下、gemfileです。
source 'https://rubygems.org' ruby '2.1.1' gem 'rails', '4.1.5' gem 'sass-rails', '~> 4.0.3' gem 'uglifier', '>= 1.3.0' gem 'coffee-rails', '~> 4.0.0' gem 'jquery-rails' gem 'turbolinks' gem 'devise' gem 'acts_as_votable', '~> 0.10.0' gem 'simple_form', '~> 3.0.2' gem 'paperclip', '~> 4.2.0' gem 'bootstrap-sass', '~> 3.2.0.2' gem 'jbuilder', '~> 2.0' gem 'sdoc', '~> 0.4.0', group: :doc group :development, :test do gem 'sqlite3', '1.3.9' gem 'byebug', '3.4.0' gem 'web-console', '2.0.0.beta3' gem 'spring', '1.1.3' end group :production do gem 'pg', '0.17.1' gem 'rails_12factor', '0.0.2' end
$ heroku login $git init Initialized empty Git repository in /home/ubuntu/workspace/pic_posts_c17/.git/ $ git add . $ git commit -m "Add Heroku App" [master (root-commit) 518e910] Add Heroku App 143 files changed, 3410 insertions(+) create mode 100644 .gitignore : : : : : $heroku create Creating app... done, ⬢ fierce-ravine-68888 https://fierce-ravine-68888.herokuapp.com/ | https://git.heroku.com/fierce-ravine-68888.git $git push heroku master Counting objects: 182, done. Delta compression using up to 8 threads. Compressing objects: 100% (165/165), done. Writing objects: 100% (182/182), 497.03 KiB | 14.62 MiB/s, done. Total 182 (delta 16), reused 0 (delta 0) remote: Compressing source files... done. remote: Building source: remote: remote: -----> Ruby app detected : : : : : To https://git.heroku.com/fierce-ravine-68888.git ! [remote rejected] master -> master (pre-receive hook declined) error: failed to push some refs to 'https://git.heroku.com/fierce-ravine-68888.git'
以上のような手順でやりました。
最後にエラーが出ているのが何かネックになっているのでしょうか?
rubyのインストールにエラーが出ているようです。
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.1.1.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.1.1.tgz -s -o - | tar zxf - ' failed on attempt 2 of 3. remote: ! remote: ! An error occurred while installing ruby-2.1.1 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.1.1.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 lit-reef-34885. remote: To https://git.heroku.com/lit-reef-34885.git ! [remote rejected] master -> master (pre-receive hook declined) error: failed to push some refs to 'https://git.heroku.com/lit-reef-34885.git'
回答1件
あなたの回答
tips
プレビュー