Rails チュートリアルを3日前から実践している初心者です。
コマンドラインにてgit push heroku masterをしてもエラーが出てしまいなかなかデプロイできず困っています。
どこがエラーになっているのかすら分かっていない状況ですのでご指導いただければ幸いです。
開発環境
Mac
vagrant
virtual box
(開発環境はドットインストールと全く同じです)
エラー文
Terminal
1[vagrant@localhost baton]$ git push heroku master 2Counting objects: 98, done. 3Compressing objects: 100% (83/83), done. 4Writing objects: 100% (98/98), 22.52 KiB, done. 5Total 98 (delta 9), reused 0 (delta 0) 6remote: Compressing source files... done. 7remote: Building source: 8remote: 9remote: ! Warning: Multiple default buildpacks reported the ability to handle this app. The first buildpack in the list below will be used. 10remote: Detected buildpacks: Ruby,Node.js 11remote: See https://devcenter.heroku.com/articles/buildpacks#buildpack-detect-order 12remote: -----> Ruby app detected 13remote: -----> Compiling Ruby/Rails 14remote: 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. 15remote: 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. 16remote: 17remote: ! 18remote: ! An error occurred while installing ruby-2.3. 19remote: ! 20remote: ! This version of Ruby is not available on Heroku-18. The minimum supported version 21remote: ! of Ruby on the Heroku-18 stack can found at: 22remote: ! 23remote: ! https://devcenter.heroku.com/articles/ruby-support#supported-runtimes 24remote: ! 25remote: ! Push rejected, failed to compile Ruby app. 26remote: 27remote: ! Push failed 28remote: Verifying deploy... 29remote: 30remote: ! Push rejected to vast-chamber-95204. 31remote: 32
試したこと
An error occurred while installing ruby-2.3.
This version of Ruby is not available on Heroku-18.
The minimum supported versionof Ruby on the Heroku-18 stack can found at:
https://devcenter.heroku.com/articles/ruby-support#supported-runtimes
この箇所が赤文字だったので、「Rubyのバージョンが違うのかな」と思い、バージョン自体は変更しています。
[vagrant@localhost myapp]$ ruby -v
ruby 2.5.1p57 (2018-03-29 revision 63029) [x86_64-linux]
ただ、何回やっても『An error occurred while installing ruby-2.3.』というバージョンが出てしまうのでよく分からず。
詳しい方、お教えいただければ幸いです。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。