diff --git a/docs/v3.x/deployment/heroku.md b/docs/v3.x/deployment/heroku.md index 6051ca3693..85d93de9f7 100644 --- a/docs/v3.x/deployment/heroku.md +++ b/docs/v3.x/deployment/heroku.md @@ -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;