Marco Neves Marco Neves - 8 days ago 6
Git Question

Git repository name does not update

I'm doing a ruby on rails project using Heroku to run my app and I came across a very annoying problem. I had a lot of bugs in my app so I decided to erase my app and deploy again on to a new app. The thing is, whenever I try

>> heroku create \\ works as intended
>> git push heroku master \\ tries to push using the erased app name, fails
>> remote: ! No such app as old-app-75226.


how do I tell the system, in this case C9, that I want it to push to the new app ?

Answer

you need to detach your repository from heroku first and create again

git remote rm heroku
heroku create
git push heroku master