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

javascript - Confirm a form & display message if form is valid with JQuery -

Retrieving ETA (estimated time of arrival) with Google Distance Matrix API and public transit as transport mode -

ionic framework - Meteor - Error: Failed to execute 'insertBefore' on 'Node' -