Created
January 3, 2014 03:32
-
-
Save ewalk153/8232216 to your computer and use it in GitHub Desktop.
upgrade heroku postgres from crane to yanari
This file contains hidden or 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
# this can be done anytime | |
heroku addons:add heroku-postgresql:standard-yanari --app nav-chronos; heroku pg:wait | |
# about 3m30s | |
heroku maintenance:on | |
heroku ps:scale worker=0 | |
heroku pgbackups:capture --expire | |
# less than 20 min | |
heroku pgbackups:restore HEROKU_POSTGRESQL_PINK | |
# less than 20 min | |
heroku pg:promote HEROKU_POSTGRESQL_PINK | |
heroku maintenance:off | |
heroku ps:scale worker=1 | |
# destroy old database once your sure the new database is working |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment