Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Pushing app to heroku problem

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?

like image 225
goddamnyouryan Avatar asked Jun 01 '10 03:06

goddamnyouryan


People also ask

Why is my app not working on Heroku?

There are some errors which only occur when the app is rebooting so you will need to restart the app to see these log messages appear. For most apps, we also recommend enabling one of the free logging addons from https://elements.heroku.com/addons#logging to make sure that your historical log data is being saved.

Why is my Heroku build failing?

Sometimes installing a dependency or running a build locally completes successfully, and when it gets to Heroku, the build will fail. If you run into an issue where a dependency only fails on Heroku, it's recommended to spin up a one-off dyno to debug the script.

Why you shouldn't use Heroku?

Heroku is also hard to use for non-web services that don't use HTTP. It's not really set up for them. It gets your data, which may or may not be a problem. It's like other cloud vendors, but may not be okay for you.

How do I push to a specific app in Heroku?

To deploy your app to Heroku, use the git push command to push the code from your local repository's main branch to your heroku remote. For example: $ git push heroku main Initializing repository, done.


2 Answers

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 [email protected]:electric-meadow-15.git
like image 104
Adam Wiggins Avatar answered Oct 05 '22 02:10

Adam Wiggins


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.

like image 13
ajivani Avatar answered Oct 05 '22 02:10

ajivani