This buildpack executes a PostgreSQL script file on deployment to Heroku.
You are developing a NodeJS-PostgreSQL application on Github with automatic deployment to Herokuapp whenever there is a commit to the
master branch. You would like your
setup.sql file to be executed each time this deployment occurs in order to reset all data (re-create and re-populate tables) in the PostgreSQL database add-on attached to your Herokuapp project.
DATABASE_URL: postgres://[username]:[password]@[host address]:[port]/[database name]
DATABASE_URL for your PostgreSQL database add-on can be accessed at the Settings > View Credentials... section of your add-on administration page. Find out more here.
Copy the snippet above into CLI.