mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-03 08:22:42 +00:00
Merge branch 'private/asachkov/refactor-config-initialization' of https://github.com/AlexeySachkov/homebrewery into pr/1981
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