0
0

More than 5 years have passed since last update.

AWS Cloud9 でインストール翌日に heroku がみつからない

Posted at

Rails チュートリアルを始めて2日目。
第3章

後でproduction環境にプッシュするときに悩まずに済むよう、アプリをなるべく早い段階でHerokuにデプロイしておくとよいでしょう。

という記載に従い

$ heroku create

したら、

bash: heroku: command not found

と言われてしまった。
PATH 設定が読み込まれていないので

$ source ~/.profile

でOK。

$ echo $PATH
/usr/local/heroku/bin:...

~/.profile は ~/.bash_profile があると読み込まれないので、~/.bash_profile に追記しておいた。

.bash_profile
if [ -f ~/.profile ]; then
    source ~/.profile
fi 
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