Pushing app to heroku problem

Ruby on-RailsRubyHostingHeroku

Ruby on-Rails Problem Overview


I am trying to push my app to heroku and I get the following message:

$ heroku create
Creating electric-meadow-15..... done
Created http://electric-meadow-15.heroku.com/ | [email protected]:electric-meadow-1
5.git

$ git push heroku master

 !  No such app as fierce-fog-63

fatal: The remote end hung up unexpectedly

It's weird that I am getting this now, I have pushed the app to heroku many times without issue. the especially weird thing is, fierce-fog-63 is an old app that I made and deleted a long time ago. Why is it now that heroku is trying to push to this app that doesn't exist anymore, especially when I have created a new one? Any suggestions?

Ruby on-Rails Solutions


Solution 1 - Ruby on-Rails

Type this and I think you'll see the problem:

git remote -v

Fix it like this:

git remote rm heroku
git remote add heroku git@heroku.com:electric-meadow-15.git

Solution 2 - Ruby on-Rails

I was getting the second error you posted "failed to push some refs to '[email protected]:floating-stone-94.git' " (with a different app name) and i got rid of it by doing the following:

git remote rm heroku
heroku create

you should see a line that says 'Git remote heroku added'. Also

git remote -v

should now have the correct app.

Solution 3 - Ruby on-Rails

For all the people who this does not work, check your ~/.heroku/credentials
If the email or token does not match the account, you won't see your apps.

Solution 4 - Ruby on-Rails

If you got here and think you have a similar problem but all of the other stuff suggested does not work you might want to try:

heroku restart

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestiongoddamnyouryanView Question on Stackoverflow
Solution 1 - Ruby on-RailsAdam WigginsView Answer on Stackoverflow
Solution 2 - Ruby on-RailsajivaniView Answer on Stackoverflow
Solution 3 - Ruby on-RailsgeorgekorsnickView Answer on Stackoverflow
Solution 4 - Ruby on-RailsBruiserView Answer on Stackoverflow