mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2025-12-24 18:32:41 +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')
|
||||
.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