If you have determined that a bug is PostgreSQL specific, and it is easier to debug it interactively, first create the database as mentioned at local run as identical to deployment as possible and then:or shortcut for the run:
OURBIGBOOK_POSTGRES=1 ./bin/generate-demo-data.js
OURBIGBOOK_POSTGRES=1 npm run dev
npm run dev-pg
Note that doing because we have to shell out to the ugly migration CLI, and that only understands
sync-db
also requires NODE_ENV=production
as in:NODE_ENV=production OURBIGBOOK_POSTGRES=1 bin/sync-db.js
NODE_ENV
.