Fix heroku guide to set database settings in proper env path

Signed-off-by: Derrick Mehaffy <derrickmehaffy@gmail.com>
This commit is contained in:
Derrick Mehaffy 2020-10-02 13:43:33 -07:00
parent 65308ae2cd
commit 2ac93e24b4

View File

@ -198,11 +198,11 @@ With yarn:
yarn add pg-connection-string
```
#### 4. Update your database config file
#### 4. Create your Heroku database config file
Replace the contents of `database.js` with the following:
Create a new `database.js` in a new [env](../concepts/configurations.html#environments) folder with the following structure, by default Heroku applies the `NODE_ENV` environment variable as production. When you run locally you be using the `./config/database.js` which should be set to SQLite.
`Path: ./config/database.js`.
`Path: ./config/env/production/database.js`.
```js
const parse = require('pg-connection-string').parse;