Postgres copy Heroku Production DB to local development DB

后端 未结 6 2058
误落风尘
误落风尘 2020-12-23 11:44

I have a heroku database, d76mj7ltuqs.

I then have a local database, test_development.

The schema is the same on both of these data

6条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-23 12:01

    This command should do the work:

    heroku pg:pull DATABASE_URL database-name --app heroku-app-name
    

提交回复
热议问题