fix(deps): bump dependencies (#8239)

* fix(deps): bump dependencies

* fix(deps): commander@5

* fix(deps): use @nodebb/mubsub
This commit is contained in:
Peter Jaszkowiak
2020-04-13 13:50:20 -06:00
committed by GitHub
parent f2f6fbf15a
commit e68156e1f2
3 changed files with 52 additions and 53 deletions

View File

@@ -82,10 +82,9 @@ program
.version(pkg.version)
.option('--json-logging', 'Output to logs in JSON format', false)
.option('--log-level <level>', 'Default logging level to use', 'info')
.option('--config <value>', 'Specify a config file', 'config.json')
.option('-d, --dev', 'Development mode, including verbose logging', false)
.option('-l, --log', 'Log subprocess output to console', false)
.option('-c, --config <value>', 'Specify a config file', 'config.json')
.parse(process.argv);
.option('-l, --log', 'Log subprocess output to console', false);
nconf.argv().env({
separator: '__',
@@ -98,7 +97,7 @@ global.env = env;
prestart.setupWinston();
// Alternate configuration file support
var configFile = path.resolve(dirname, program.config);
var configFile = path.resolve(dirname, nconf.get('config') || 'config.json');
var configExists = file.existsSync(configFile) || (nconf.get('url') && nconf.get('secret') && nconf.get('database'));
prestart.loadConfig(configFile);