LoginSignup
84
78

More than 5 years have passed since last update.

herokuアプリケーションの名前を変更する

Last updated at Posted at 2013-02-01

herokuアプリケーションの名前を変更する方法についてのドキュメントです。
といっても大した事は無く、昔はちょっと面倒だったようですが、現在はコマンド一発です。
ということをお伝えしたくて記事にしました。

1. herokuアプリの名前を変更する。

herokuアプリのディレクトリ内で変更する場合

$ heroku rename 新しい名前

herokuアプリのディレクトリ外で変更する場合

$ heroku rename 新しい名前 --app 古い名前

herokuの管理画面でrenameすることもできますが、その場合だと、herokuコマンドが--app 新しい名前 を付けないと動作しないようになってしまいます。

また、以前は以下の2のステップも必要でしたが、現在は、前者のherokuアプリのディレクトリ内でheroku renameした場合は、2のステップもherokuが自動的にやってくれるようです。

2. gitのリモートのURLを変更する(現在は不要)

$ git remote rm heroku
$ git remote add heroku git@heroku.com:新しい名前.git

謝辞

以下のサイト様の情報を大部分使わせていただきました。ありがとうございます。
T.I.D.

私が追記した情報がとても少なくて、なんか申し訳ないです(汗)
このドキュメントの功績の大部分はT.I.D.様にあります^^;

84
78
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
84
78