I have a current ‘staging’ database in ‘heroku’ and would like to migrate it into ‘production’ database? How could I do this? I looked into their taps app but it was not too clear of how it works?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Two options,
PGBackups – https://devcenter.heroku.com/articles/pgbackups – use against your staging database to back it up and then restore to your your production one. Looks at the Transfers sub heading in that page.
Taps via
heroku db:pullandheroku db:push– This you would use to pull your staging database to your local machine (doesn’t matter what DB you’re using locally) and then push it to your production application.If you’re dealing with a large dataset then option 1 is the best option to use. Option 2 also lets you only push specific tables if you uses the
--tables <tablenames>argument which is useful in some occasions.