LoginSignup
3
0

More than 5 years have passed since last update.

heroku: command not found

Posted at

heroku: command not found

cloud9でコミットプッシュしようとして、以下のようなコマンドを打つとエラーが。

$ git commit -am "Add hello" 
$ git push
$ heroku create

エラー内容

heroku: command not found

解決方法

$ wget https://cli-assets.heroku.com/heroku-cli/channels/stable/heroku-cli-linux-x64.tar.gz -O heroku.tar.gz
$ sudo mkdir -p /usr/local/lib/heroku
$ sudo tar --strip-components 1 -zxvf heroku.tar.gz -C /usr/local/lib/heroku
$ sudo ln -s /usr/local/lib/heroku/bin/heroku /usr/local/bin/heroku

↑のコマンドを打つと、

$ heroku create
$ git push heroku master

コマンドがうまくいき、コミット&herokuにプッシュができました!

参考

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