How do I transfer production database to staging on Heroku using pgbackups? Getting error

后端 未结 12 2188
刺人心
刺人心 2021-01-30 03:13

On Heroku, I am trying to copy the production database into my staging app using the pgbackups addon. I followed the instructions on the addon page: https://devcenter.heroku.com

12条回答
  •  长发绾君心
    2021-01-30 03:33

    UPDATE: You can run this command to transfer the database from production to staging: heroku pg:copy your-app::DATABASE_URL DATABASE_URL -a yourapp-staging

    It will prompt you to confirm the action, and once you have done that, all of the data will be migrated.

提交回复
热议问题