mirror of
https://github.com/taobataoma/meanTorrent.git
synced 2026-07-12 07:42:09 +02:00
Merge pull request #640 from lirantal/bugfix/server-startup-log
cleaning up application startup information
This commit is contained in:
@@ -61,8 +61,6 @@ var validateEnvironmentVariable = function() {
|
||||
console.error(chalk.red('NODE_ENV is not defined! Using default development environment'));
|
||||
}
|
||||
process.env.NODE_ENV = 'development';
|
||||
} else {
|
||||
console.log(chalk.bold('Application loaded using the "' + process.env.NODE_ENV + '" environment configuration'));
|
||||
}
|
||||
// Reset console color
|
||||
console.log(chalk.white(''));
|
||||
|
||||
@@ -23,10 +23,10 @@ mongoose.connect(function (db) {
|
||||
|
||||
// Logging initialization
|
||||
console.log('--');
|
||||
console.log(chalk.green(config.app.title + ' application started'));
|
||||
console.log(chalk.green(config.app.title));
|
||||
console.log(chalk.green('Environment:\t\t\t' + process.env.NODE_ENV));
|
||||
console.log(chalk.green('Port:\t\t\t\t' + config.port));
|
||||
console.log(chalk.green('Database:\t\t\t' + config.db.uri));
|
||||
console.log(chalk.green('Database:\t\t\t\t' + config.db.uri));
|
||||
if (process.env.NODE_ENV === 'secure') {
|
||||
console.log(chalk.green('HTTPs:\t\t\t\ton'));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user