mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-11-22 23:16:58 +00:00
Merge branch 'private/asachkov/refactor-config-initialization' of https://github.com/AlexeySachkov/homebrewery into pr/1981
This commit is contained in:
commit
e4c2ce6a8c
1 file changed
+4
-2
+4
-2
@@ -1,5 +1,7 @@
|
||||
const path = require('path');
|
||||
|
||||
module.exports = require('nconf')
|
||||
.argv()
|
||||
.env({ lowerCase: true })
|
||||
.file('environment', { file: `config/${process.env.NODE_ENV}.json` })
|
||||
.file('defaults', { file: 'config/default.json' });
|
||||
.file('environment', { file: path.resolve(__dirname, '../config/${process.env.NODE_ENV}.json') })
|
||||
.file('default', { file: path.resolve(__dirname, '../config/default.json') });
|
||||
Reference in new issue
Block a user