Skip to content

Instantly share code, notes, and snippets.

@tadejm
Created November 27, 2017 09:22
Show Gist options
  • Save tadejm/a84fcef7daeed809f27cd15365b1f0ba to your computer and use it in GitHub Desktop.
Save tadejm/a84fcef7daeed809f27cd15365b1f0ba to your computer and use it in GitHub Desktop.
Step by step guide for Heroku Postgres upgrade, 9.5 to 9.6
Heroku DB upgrade notes
heroku addons:create heroku-postgresql:standard-0 -r production
heroku ps:scale web=0 worker=0 -r production
heroku maintenance:on -r production
heroku pg:backups:capture -r production
heroku pg:copy DATABASE_URL __NEW_DB_URL__ -r production
heroku pg:promote __NEW_DB_URL__ -r production
heroku ps:scale web=1 worker=1 -r production
heroku maintenance:off -r production
heroku pg:info -r production
heroku addons:destroy __OLD_DB_URL__ -r production
heroku pg:info -r production
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment