Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Heroku - How can I undo a push on heroku?

Tags:

heroku

After pushing my app on heroku, my app crashes. I don't want to make a git rebase before getting heroku last version (if I do so, I'll get fast-forward errors...)

I would be pleased to know if there is a command to do it (I don't find it on the heroku doc)

Thank you!

like image 746
benoitr Avatar asked Nov 06 '10 21:11

benoitr


People also ask

How do I cancel heroku deploy?

To monitor your Release Phase processes as they execute, you can use the CLI command heroku ps -a YOUR_APP_NAME . as these are normal processes, you can use the ps:kill and ps:scale commands to stop the Release Phase from completing, which in turn, will prevent the latest release from completing.

What is rollback in heroku?

With heroku rollback , you can rollback to a previous, known good release in a single command - providing a fast way to revert in case of bad deploys or config changes.

How do I push to heroku again?

You can run heroku restart --app app_name and you are good to go. @PanMan The question says "How can I redeploy the app while there is nothing to push ?".


2 Answers

actually now heroku has a rollback!

http://blog.heroku.com/archives/2010/11/17/releases/

heroku rollback 
like image 103
jpw Avatar answered Sep 22 '22 23:09

jpw


Use git push heroku --force to push your local HEAD.

like image 28
yfeldblum Avatar answered Sep 20 '22 23:09

yfeldblum