Skip to content

Instantly share code, notes, and snippets.

@SeyZ
Last active August 30, 2018 09:02
Show Gist options
  • Save SeyZ/1dd52b250ba2b05a075ff2da8c71d743 to your computer and use it in GitHub Desktop.
Save SeyZ/1dd52b250ba2b05a075ff2da8c71d743 to your computer and use it in GitHub Desktop.
doc-lumber-deploy-to-heroku-dump-database
# Export my data from my local database
pg_dump -h localhost -p 5446 -U forest forest_live_demo_rails --no-owner --no-acl -f database.sql
# Import my data to the Heroku database
heroku pg:psql DATABASE_URL --app lumber-deploy-to-production < database.sql
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment