Reputation: 8424
So I used heroku create
with one of my apps, but then when on heroku.com I deleted the corresponding repository. I tried using heroku create
again and it did give me another URL, but now when I try to push my app it keeps looking for the old one:
! No such app as [old name]
fatal: The remote end hung up unexpectedly
How do I get heroku to stop looking for this old app and use the newly created one?
Upvotes: 0
Views: 289
Reputation: 55718
Your local git repository has the old URL saved in its heroku
remote. You have to update it using
git remote set-url --push heroku [email protected]:new_app.git
See Heroku's documentation and the Git manpage for more information.
Upvotes: 5