From be2fe14f4d8c575ab95fea41205b3771045fb135 Mon Sep 17 00:00:00 2001 From: barisusakli Date: Thu, 24 Sep 2015 22:32:40 -0400 Subject: [PATCH] fix startup msg --- app.js | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/app.js b/app.js index cc079c4b51..c6714a6425 100644 --- a/app.js +++ b/app.js @@ -45,14 +45,6 @@ winston.add(winston.transports.Console, { level: nconf.get('log-level') || (global.env === 'production' ? 'info' : 'verbose') }); -if (!process.send) { - // If run using `node app`, log GNU copyright info along with server info - winston.info('NodeBB v' + nconf.get('version') + ' Copyright (C) 2013-2014 NodeBB Inc.'); - winston.info('This program comes with ABSOLUTELY NO WARRANTY.'); - winston.info('This is free software, and you are welcome to redistribute it under certain conditions.'); - winston.info(''); -} - // Alternate configuration file support var configFile = path.join(__dirname, '/config.json'); @@ -65,6 +57,15 @@ var configExists = fs.existsSync(configFile); loadConfig(); +if (!process.send) { + // If run using `node app`, log GNU copyright info along with server info + winston.info('NodeBB v' + nconf.get('version') + ' Copyright (C) 2013-2014 NodeBB Inc.'); + winston.info('This program comes with ABSOLUTELY NO WARRANTY.'); + winston.info('This is free software, and you are welcome to redistribute it under certain conditions.'); + winston.info(''); +} + + if (nconf.get('setup') || nconf.get('install')) { setup(); } else if (!configExists) {