0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-31 13:02:38 +00:00

process.chdir in app.js.

Everything works, no need for path.resolve. All tests pass.
This commit is contained in:
Trevor Buckner
2022-01-29 23:53:30 -05:00
parent e4c2ce6a8c
commit d7aa4afa60
4 changed files with 13 additions and 23 deletions

View File

@@ -1,7 +1,5 @@
const path = require('path');
module.exports = require('nconf')
.argv()
.env({ lowerCase: true })
.file('environment', { file: path.resolve(__dirname, '../config/${process.env.NODE_ENV}.json') })
.file('default', { file: path.resolve(__dirname, '../config/default.json') });
.file('environment', { file: `config/${process.env.NODE_ENV}.json` })
.file('defaults', { file: 'config/default.json' });