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

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

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

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

Ruby on Rails

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

Q&A

解決済

1回答

2605閲覧

herokuにあげられない

rowarubchinsky

総合スコア20

Heroku

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

Ruby on Rails

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

0グッド

1クリップ

投稿2018/10/23 09:07

編集2018/10/23 09:20
git -c diff.mnemonicprefix=false -c core.quotepath=false -c credential.helper=sourcetree push -v --tags --set-upstream heroku refs/heads/master:refs/heads/master Pushing to https://git.heroku.com/ POST git-receive-pack (chunked) remote: Compressing source files... done. remote: Building source: remote: remote: ! Warning: Multiple default buildpacks reported the ability to handle this app. The first buildpack in the list below will be used. remote: Detected buildpacks: Ruby,Node.js remote: See https://devcenter.heroku.com/articles/buildpacks#buildpack-detect-order 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-18/ruby-2.3.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-18/ruby-2.3.1.tgz -s -o - | tar zxf - ' failed on attempt 2 of 3. remote:  remote: ! remote: ! An error occurred while installing ruby-2.3.1 remote: ! remote: ! This version of Ruby is not available on Heroku-18. The minimum supported version remote: ! of Ruby on the Heroku-18 stack can found at: remote: ! remote: ! https://devcenter.heroku.com/articles/ruby-support#supported-runtimes remote: ! remote: ! Push rejected, failed to compile Ruby app. remote: remote: ! Push failed remote: Verifying deploy... remote: remote: ! Push rejected to heroku. remote: To https://git.heroku.com/ ! [remote rejected] master -> master (pre-receive hook declined) error: failed to push some refs to 'https://git.heroku.com/' Completed with errors, see above

へろくにいつもの手順でプッシュしたのですが、なぜかあげることができません。
原因が全くわからないので、エラーのログを貼りました。

どんな可能性があるのか、教えていただきたいです。

Ruby on railsのプロジェクトです。

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

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

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

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

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

kazto

2018/10/23 09:14

ご自身のプロジェクトは、Rubyでしょうか、Node.jsでしょうか?それとも他の何かでしょうか。
guest

回答1

0

ベストアンサー

https://devcenter.heroku.com/articles/ruby-support#ruby-versions によると、herokuで使用できるRubyのバージョンは条件があります。

  • 1.9系の場合は1.9.3のみ
  • 2.0系の場合は2.0の最新パッチレベルのみ
  • 2.3.8 : patchlevel 459
  • 2.4.5 : patchlevel 335
  • 2.5.3 : patchlevel 105

一方、プロジェクトのGemfileにrubyバージョンの指定で2.3.1を指定してはいませんでしょうか。
herokuがサポート指定ないバージョンのものを使用しようとしてエラーとなっていると推測できます。

投稿2018/10/23 09:23

kazto

総合スコア7196

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

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

rowarubchinsky

2018/10/23 09:36

ご回答ありがとうございます。 Gemfileで2.3.1を指定しているのですが、ここの記述を変更するだけで、 シンプルにプッシュが可能になるものなのでしょうか。
kazto

2018/10/23 23:30

他に問題がなければ、大丈夫だと思います。
guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

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

ただいまの回答率
85.50%

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

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

質問する

関連した質問