Seed db after deploying app to Heroku

PHOTO EMBED

Mon Jun 14 2021 12:02:44 GMT+0000 (Coordinated Universal Time)

Saved by @hisam #heroku #seed #nodejs

# Open the terminal in the app dyno in Heroku

heroku run bash

 

# We may then run the seed file

node bin/seed.js
content_copyCOPY

You can open the terminal instance on the Heroku container (dyno) in order to run custom scripts or seed the files.