Skip to content
This repository was archived by the owner on Aug 30, 2021. It is now read-only.

Commit 374b45c

Browse files
committed
providing more verbose output for current nodejs app configuration on application startup
1 parent b92f232 commit 374b45c

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

server.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,9 @@ app.listen(config.port);
3333
exports = module.exports = app;
3434

3535
// Logging initialization
36-
console.log('MEAN.JS application started on port ' + config.port);
36+
console.log('--');
37+
console.log(chalk.green(config.app.title + ' application started'));
38+
console.log(chalk.green('Environment:\t\t\t' + process.env.NODE_ENV));
39+
console.log(chalk.green('Port:\t\t\t\t' + config.port));
40+
console.log(chalk.green('Database:\t\t\t' + config.db));
41+
console.log('--');

0 commit comments

Comments
 (0)