proper stripe changes for prod

This commit is contained in:
Arjun Patel
2019-04-13 23:34:25 -07:00
parent 2010f33f0a
commit 232d3ad098
3 changed files with 9 additions and 4 deletions
+24
View File
@@ -0,0 +1,24 @@
Insert seed data:
- 3 orgs (password: test)
- 1 donor (password: test)
- basic causes
- basic regions
- 1 charity bundle
`npx sequelize db:seed:all`
Revert seed data insert:
`npx sequelize db:seed:undo:all`
Drop all tables:
`npm run drop:local:{operating_system}` where `operating_system` is `mac` or `windows`
Heroku Production database dropping, migrations, and seeding:
- Change the `production` property in migrations.config.js with heroku production database config
- `heroku apps` to login to env
- `heroku run DROP_TABLES=true node server.js --app ucharify-api` to drop the tables
- in local cmd or terminal run `Set NODE_ENV=production& npx sequelize db:seed:all` for seeding production db
Sequelize seed data in production. Similar to migrations:
`npx sequelize db:seed:all --env production` - any other NODE_ENV in place of `production`