fixed default config location
This commit is contained in:
parent
fd26fbe75d
commit
443afc8b5e
1 changed files with 1 additions and 5 deletions
6
ninwa.js
6
ninwa.js
|
@ -9,13 +9,9 @@ logger.info(packageJSON.name + ' ' + packageJSON.version + ' starting...');
|
||||||
|
|
||||||
handleInterrupts();
|
handleInterrupts();
|
||||||
|
|
||||||
const config = process.argv[2] || './config.json';
|
const config = process.argv[2] || __dirname + '/config.json';
|
||||||
|
|
||||||
util.fileExists(config)
|
util.fileExists(config)
|
||||||
.catch((err) => {
|
|
||||||
logger.error(err);
|
|
||||||
exit(1);
|
|
||||||
})
|
|
||||||
.then(watchers.initialize)
|
.then(watchers.initialize)
|
||||||
.then(watchers.start)
|
.then(watchers.start)
|
||||||
.catch((err) => {
|
.catch((err) => {
|
||||||
|
|
Loading…
Reference in a new issue