mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-01 02:02:43 +00:00
Adjust paths to config files
This commit is contained in:
@@ -1,5 +1,7 @@
|
|||||||
|
const path = require('path');
|
||||||
|
|
||||||
module.exports = require('nconf')
|
module.exports = require('nconf')
|
||||||
.argv()
|
.argv()
|
||||||
.env({ lowerCase: true })
|
.env({ lowerCase: true })
|
||||||
.file('environment', { file: `config/${process.env.NODE_ENV}.json` })
|
.file('environment', { file: path.resolve(__dirname, '../config/${process.env.NODE_ENV}.json') })
|
||||||
.file('defaults', { file: 'config/default.json' });
|
.file('default', { file: path.resolve(__dirname, '../config/default.json') });
|
||||||
|
|||||||
Reference in New Issue
Block a user