per: https://courses.thinkful.com/node-postgres-v1/checkpoint/20#full-stack-bookmarks
During the checkpoint walk-thru I had the same heroku npm run migrate:production
issue as before with my Blogful-api =/ See Blogful README for additional context from ThinkChat help...
Updates required:
1. packgage.json "scripts"
- Update, per ThinkChat suggestion:
"migrate:production": "env SSL=true NODE_TLS_REJECT_UNAUTHORIZED=0 DATABASE_URL=$(heroku config:get DATABASE_URL) npm run migrate"
- Alternatively (didn't work):
"migrate:production": "env SSL=true DATABASE_URL=$(heroku config:get DATABASE_URL) npm run migrate"
2. postgrator-config.js
- Add
"ssl": !!process.env.SSL
to themodule.export
properties.
pair: Alen + Sacha
per: https://courses.thinkful.com/node-postgres-v1/checkpoint/17#assignment
branch: checkpoint-17
per: https://courses.thinkful.com/node-postgres-v1/checkpoint/16#assignment
branch: checkpoint-16
per: https://courses.thinkful.com/node-postgres-v1/checkpoint/15#assignment
branch: checkpoint-15
per: https://courses.thinkful.com/node-postgres-v1/checkpoint/10#assignment
branch: checkpoint-10 ... plus associated branch 'test-to-fail' for git diff purposes.