Skip to content

Instantly share code, notes, and snippets.

@fahim
Created February 17, 2016 04:33
Show Gist options
  • Save fahim/7c06752e00607378b110 to your computer and use it in GitHub Desktop.
Save fahim/7c06752e00607378b110 to your computer and use it in GitHub Desktop.
how to copy from production to staging on heroku
heroku plugins:install https://github.com/ddollar/heroku-pg-transfer
heroku pg:transfer -f `heroku config:get DATABASE_URL --app production` -t `heroku config:get DATABASE_URL --app staging`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment