How I can copy my local PostgreSQL database to Heroku for SpringBoot app -


i have deployed springboot app heroku. copy local postgresql heroku.

i have found information on devcenter.heroku.com. don't understand enough using of file db.changelog-master.yaml.

could give me details simplest solutions copy database?

create valid dump of local postgres database , host somewhere publicly available. able restore entire dataset (schema , records) pg:backups:restore shown here. sole caveat here target database must empty work. can empty heroku postgres database heroku pg:reset.

if cannot take approach listed above can run pg_restore directly local instance, provided local version of postgres >= target version of postgres. applies creating dumpfile , requirement because pg utilities not guaranteed forward compatible. documentation pg_restore here.


Comments

Popular posts from this blog

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -