4
3

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 5 years have passed since last update.

herokuでrubyのバージョンに合わせてherokuのバージョンを下げる

4
Posted at

herokuでデプロイする際に現状のruby(2.3.1)をバージョンアップが難しくheroku側で対応する際にうまく行かなかったのでメモ。

ターミナルから

heroku stack:set heroku-16

と打ってもエラーが出る。

 >   Error: Missing required flag:
 ›     -a, --app APP  app to run command against
 ›   See more help with --help

heroku helpで確認するとアプリケーション名を明示しないといけないようだ。だが、今の所アプリはなし。そこで先にheroku createして

heroku stack:set heroku-16 -a [app-name]

で解決。

4
3
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
4
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?