Created
June 9, 2015 19:06
-
-
Save jwright/3a8587ec7e97da587d6e to your computer and use it in GitHub Desktop.
Copy database from production to staging on Heroku
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
git remote add staging git@heroku.com:my-staging-app.git | |
git remote add production git@heroku.com:my-production-app.git | |
heroku pg:backups restore `heroku pg:backups public-url --remote production | cat` DATABASE --remote staging |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment