Created
November 27, 2017 09:22
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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