mirror of
https://github.com/strapi/strapi.git
synced 2025-09-23 15:29:27 +00:00
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:
commit
fb66ece326
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user