0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

【Heroku】The Ruby version you are trying to install does not exist on this stack.

Last updated at Posted at 2021-03-13

Error

Rails アプリケーションを Heroku へのデプロイした際に以下のエラーが発生

remote:  !     The Ruby version you are trying to install does not exist on this stack.
remote:  !     
remote:  !     You are trying to install ruby-2.6.3 on heroku-20.
remote:  !     
remote:  !     Ruby ruby-2.6.3 is present on the following stacks:
remote:  !     
remote:  !     - cedar-14
remote:  !     - heroku-16
remote:  !     - heroku-18

Translate

インストールしようとしている Ruby のバージョンは、このスタックには存在しません。

heroku-20 に ruby-2.6.3 をインストールしようとしています。

Ruby の ruby-2.6.3 は以下のスタックに存在します。

  • cedar-14
  • heroku-16
  • heroku-18

現在の Heroku スタック(デプロイ環境)は「heroku-20」で使用予定の ruby-2.6.3 を使うには

  • cedar-14
  • heroku-16
  • heroku-18

のいずれかのスタックを使用する必要があるらしい

Resolve

Heroku のスタック(デプロイ環境)を「heroku-18」に変更して、再度 push

$ heroku stack:set heroku-18
$ git push heroku master
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?