Merge pull request #8165 from strapi/docs/heroku/fixDatabaseGuide

Fix heroku guide to set database settings in proper env path
This commit is contained in:
Alexandre BODIN 2020-10-06 10:56:38 +02:00 committed by GitHub
commit fb66ece326
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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. By default Heroku applies the `NODE_ENV` environment variable as production. When you run locally you should be using the `./config/database.js` which should be set to use SQLite.
`Path: ./config/database.js`.
`Path: ./config/env/production/database.js`
```js
const parse = require('pg-connection-string').parse;