fixed default config location

This commit is contained in:
Daniel Sommer 2022-02-19 02:28:37 +01:00
parent fd26fbe75d
commit 443afc8b5e

View file

@ -9,13 +9,9 @@ logger.info(packageJSON.name + ' ' + packageJSON.version + ' starting...');
handleInterrupts();
const config = process.argv[2] || './config.json';
const config = process.argv[2] || __dirname + '/config.json';
util.fileExists(config)
.catch((err) => {
logger.error(err);
exit(1);
})
.then(watchers.initialize)
.then(watchers.start)
.catch((err) => {