Created
March 11, 2014 01:15
-
-
Save josiasds/9477716 to your computer and use it in GitHub Desktop.
Heroku Postgres Upgrade in production
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 addons:add pgbackups | |
heroku addons:add heroku-postgresql:hobby-basic | |
# The new database color will be created. Ex.: HEROKU_POSTGRESQL_IVORY | |
heroku maintenance:on | |
heroku ps:scale worker=0 | |
heroku pgbackups:transfer HEROKU_POSTGRESQL_IVORY | |
heroku pg:promote HEROKU_POSTGRESQL_IVORY | |
heroku ps:scale worker=1 | |
heroku maintenance:off |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment