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

【Ruby on rails】heroku コマンド実行時にbash: heroku: command not foundと表示される。【rails tutorial】

Posted at

エラー内容

herokuでのマイグレーションを実施するために以下コマンドを実行。

heroku run rails db:migrate

すると

bash: heroku: command not found

herokuコマンドが使えない・・・。

解決方法

調べたところ、herokuを再インストールすれば直るとのこと。

以下コマンドで再インストール。

source <(curl -sL https://cdn.learnenough.com/heroku_install)

herokuコマンドでバージョン確認をしてみる。

heroku -v
heroku/7.39.3 linux-x64 node-v12.16.2

コマンドが通りました!

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?