fix startup msg

This commit is contained in:
barisusakli
2015-09-24 22:32:40 -04:00
parent b618f67a00
commit be2fe14f4d

17
app.js
View File

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