Skip to content

Instantly share code, notes, and snippets.

@paulbaker3
Last active August 29, 2015 13:56
Show Gist options
  • Save paulbaker3/8857189 to your computer and use it in GitHub Desktop.
Save paulbaker3/8857189 to your computer and use it in GitHub Desktop.
Rolling back heroku

roll back to a version tagged as "previous"

git push -f heroku previous:master

roll back three commits:

git push -f heroku HEAD~3:master

roll back to a specific SHA. Does NOT affect your current working branch!

git push -f heroku a3fe67b:master

NOTE: Does not rollback database. Must do

heroku run rake db:migrate VERSION=20090901123000

git push -f heroku old-version:master

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment