Marco Neves
Marco Neves

Reputation: 141

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 ?

Upvotes: 1

Views: 30

Answers (1)

sa77
sa77

Reputation: 3603

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

git remote rm heroku
heroku create
git push heroku master

Upvotes: 1

Related Questions