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

Commit

Permalink
Adding MEAN.JS version information as part of the startup info when a…
Browse files Browse the repository at this point in the history
…pp loads
  • Loading branch information
lirantal committed Sep 5, 2015
1 parent 522cc6b commit 58b371b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions config/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,10 @@ var initGlobalConfig = function () {
// Merge config files
var config = _.merge(defaultConfig, environmentConfig);

// read package.json for MEAN.JS project information
var pkg = require(path.resolve('./package.json'));
config.meanjs = pkg;

// We only extend the config object with the local.js custom/local environment if we are on
// production or development environment. If test environment is used we don't merge it with local.js
// to avoid running test suites on a prod/dev environment (which delete records and make modifications)
Expand Down
1 change: 1 addition & 0 deletions config/lib/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ module.exports.start = function start(callback) {
if (process.env.NODE_ENV === 'secure') {
console.log(chalk.green('HTTPs:\t\t\t\ton'));
}
console.log(chalk.green('MEAN.JS version:\t\t\t' + config.meanjs.version));
console.log('--');

if (callback) callback(app, db, config);
Expand Down

0 comments on commit 58b371b

Please sign in to comment.