Heroku Deployment loses data (postgreSQL)

Usually you don’t want your local data (development) to go up into production. If you want your local data into Heroku you’ll need to export your local data and import it there: Importing and Exporting Heroku Postgres Databases | Heroku Dev Center