Learn how to populate a remote postgreSQL database on Heroku from an existing database dump.
If you don't have a Heroku application yet, take a look at this how-to.
We recommend adding on your Heroku application the free add-on “Heroku Postgres” (1)(2).
Once installed, your Heroku application will contain an environment variable DATABASE_URL with the credentials of your new created database (1) in the “Config Vars” section (2). Here you can add more if necessary (3).
Your new database has no data yet, so you will need to import your local data to this new one.
To do that, you first need to create a dump of your local database.