Change the following:
/*
* config/env.js
*/
DB_TYPE: process.env.DB_TYPE || DB_TYPES.NONECurrently, we support these DB_TYPES:
- MONGO
- POSTGRES
- NONE
We abstracted the DB config in env to enable you to require the correct files if you were to use a different database, e.g. postgresql.
/*
* config/env.js
*/
DB_TYPE: process.env.DB_TYPE || DB_TYPES.YOUR_DBYou will need to add a folder after /db with [may] contain the following ORM specific code:
- models
- controllers
- passport logic
- connecting to the database
- session stores
- deserialising users
##Setting up Postgres
# Update brew formulae
brew update
# Install Postgres
brew install postgrespostgres -D /usr/local/var/postgrescreateuser root
createdb react_webpack_node_development # or test/production
npm run sequelize db:migrate# https://devcenter.heroku.com/articles/heroku-postgresql#provisioning-the-add-on
heroku addons:create heroku-postgresql:<PLANNAME> --as POSTGRES_DB
heroku run bash
# once in bash
npm run sequelize db:migrate
# exit heroku bash