💭
Herokuアプリケーションの名前を変更する方法
変更手順
"heroku apps
" 変更前の状態を確認。
"heroku rename [新しい名前] --app [古い名前]
" アプリ名を変更。
"heroku apps
" 変更前の状態を確認。
"git remote -v
" Gitリモートを確認。
Gitリモートが問題なければ終了。Gitリモートを更新する必要があれば、
"heroku git:remote -a [新しい名前]"
Gitリモートを更新。
masa@DESKTOP-0CNPS43:~/environment/RailsTutorial$ heroku apps
h=== mailaddress@gmail.com Apps
frozen-crag-66581
masa-rails-tutorial-toyapp
masa@DESKTOP-0CNPS43:~/environment/RailsTutorial$ heroku rename masa-rails-tutorial-20210107 --app frozen-crag-66581
Renaming frozen-crag-66581 to masa-rails-tutorial-20210107... done
https://masa-rails-tutorial-20210107.herokuapp.com/ | https://git.heroku.com/masa-rails-tutorial-20210107.git
Git remote heroku updated
▸ Don't forget to update git remotes for all other local checkouts of the app.
masa@DESKTOP-0CNPS43:~/environment/RailsTutorial$
masa@DESKTOP-0CNPS43:~/environment/RailsTutorial$ git remote -v
heroku https://git.heroku.com/masa-rails-tutorial-20210107.git (fetch)
heroku https://git.heroku.com/masa-rails-tutorial-20210107.git (push)
origin https://github.com/MASA20201203/RailsTutorial.git (fetch)
origin https://github.com/MASA20201203/RailsTutorial.git (push)
masa@DESKTOP-0CNPS43:~/environment/RailsTutorial$
masa@DESKTOP-0CNPS43:~/environment/RailsTutorial$ heroku apps
=== mailaddress@gmail.com Apps
masa-rails-tutorial-20210107
masa-rails-tutorial-toyapp
Discussion