質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.48%
Git

Gitはオープンソースの分散バージョン管理システム(DVCS)です。

Heroku

HerokuはHeroku社が開発と運営を行っているPaaSの名称です。RubyやNode.js、Python、そしてJVMベース(Java、Scala、Clojureなど)の複数のプログラミング言語をサポートしている。

Ruby on Rails

Ruby on Railsは、オープンソースのWebアプリケーションフレームワークです。「同じことを繰り返さない」というRailsの基本理念のもと、他のフレームワークより少ないコードで簡単に開発できるよう設計されています。

Ruby on Rails 4

Ruby on Rails4はRubyによって書かれたオープンソースのウェブフレームワークです。 Ruby on Railsは「設定より規約」の原則に従っており、効率的に作業を行うために再開発を行う必要をなくしてくれます。

Q&A

解決済

1回答

1345閲覧

herokuへデプロイしたら変な画面で固定されたまま動かない

renren643

総合スコア279

Git

Gitはオープンソースの分散バージョン管理システム(DVCS)です。

Heroku

HerokuはHeroku社が開発と運営を行っているPaaSの名称です。RubyやNode.js、Python、そしてJVMベース(Java、Scala、Clojureなど)の複数のプログラミング言語をサポートしている。

Ruby on Rails

Ruby on Railsは、オープンソースのWebアプリケーションフレームワークです。「同じことを繰り返さない」というRailsの基本理念のもと、他のフレームワークより少ないコードで簡単に開発できるよう設計されています。

Ruby on Rails 4

Ruby on Rails4はRubyによって書かれたオープンソースのウェブフレームワークです。 Ruby on Railsは「設定より規約」の原則に従っており、効率的に作業を行うために再開発を行う必要をなくしてくれます。

0グッド

0クリップ

投稿2017/10/19 16:17

編集2017/10/20 09:29

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'

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

CHERRY

2017/10/19 23:19

どのようなコマンドで、heroku へデプロイしたか具体的に記載していただけないでしょうか?(質問を編集して質問に追記してください。)
CHERRY

2017/10/20 04:09 編集

heroku に push した際に エラーが出ているので、heroku へのデプロイに失敗しています。「 remote: -----> Ruby app detected から To https://git.heroku.com/ 」の間の省略された部分に失敗した理由が書かれていると思うのですが、見つからないでしょうか?
renren643

2017/10/20 09:29 編集

回答ありがとうございます。ルビーのインストールに失敗しているようでした。(An error occurred while installing ruby-2.1.1)
renren643

2017/10/20 10:35

ルビーのバージョンを2.2.8にするとできました。回答ありがとうございました
CHERRY

2017/10/20 11:52

もし、解決したのであれば、自分で回答を書いて、自己解決にして、質問を終了させてください。
guest

回答1

0

自己解決

ルビーのバージョンを2.2.8にするとできました。2.1.1は対応していないようです。

投稿2017/10/20 12:02

renren643

総合スコア279

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.48%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問