What's the correct way to rename a heroku app?
HerokuHeroku ToolbeltHeroku Problem Overview
Doesn't seem to be a way to do it from the command line, and when I do this from the site, I run into this issue when I try to git push heroku master
:
! No such app as [previous app name].
Is this as simple as changing how I point to the app in git?
Heroku Solutions
Solution 1 - Heroku
Did you try heroku apps:rename NEWNAME
?
Solution 2 - Heroku
Why use all caps?
heroku apps:rename my_new_app_name
Here is a great place to find out more:
How to rename your Heroku application
In case anyone is curious this method does not require any further configuration, your modifications should be immediate. At the time of this writing I was able to change the name of my app in seconds, and then do so again if I wished. Hope this helps.
Solution 3 - Heroku
heroku apps:rename new_name --app old-app-name
^ worked for me
Solution 4 - Heroku
If you are changing the name of the app on the webpage you should Updating Git remotes
git remote rm heroku heroku git:remote -a newname
Solution 5 - Heroku
Use this:
heroku apps:rename --app old_name new_name
Solution 6 - Heroku
Try this command:
heroku rename new_app_name
Solution 7 - Heroku
heroku rename new-name-app
always works for me but for additional information on rules, follow this page.
Solution 8 - Heroku
If you want to rename your heroku app use: heroku apps:rename new_name
Please replace "new_name" with the name you want to give your app. make sure you do not include any "https://" because this will give you an issue. simply replace new_name with your app name
e.g heroku apps:rename grapefruitblog
After doing this, heroku requires that you update git remotes for all other local checkouts of the app. you can do this by running this command: heroku git:remote -a new_name
Again, replace new_name with the name you previously put in
e.g heroku git:remote -a grapefruitblog
Solution 9 - Heroku
to rename app use:
heroku apps:rename --app <old_name> <new_name>
then, remove remote heroku:
git remote rm heroku
and add new one:
heroku git:remote -a <new_name>
and push changes:
git push heroku <branch_name>:main