fix startup msg

v1.18.x
barisusakli 9 years ago
parent b618f67a00
commit be2fe14f4d

@ -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) {

Loading…
Cancel
Save