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

Commit

Permalink
Update init.js
Browse files Browse the repository at this point in the history
Just fixing some grammatical errors
  • Loading branch information
darksniper87 committed May 5, 2014
1 parent 5a2eb6e commit bcbf2af
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions config/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ var glob = require('glob');
*/
module.exports = function() {
/**
* Before we begin, lets set the envrionment variable
* Before we begin, lets set the environment variable
* We'll Look for a valid NODE_ENV variable and if one cannot be found load the development NODE_ENV
*/
glob('./config/env/' + process.env.NODE_ENV + '.js', {
Expand All @@ -19,14 +19,14 @@ module.exports = function() {
console.log();
if (!environmentFiles.length) {
if(process.env.NODE_ENV) {
console.log('\x1b[31m', 'No configuration file found for "' + process.env.NODE_ENV + '" envrionment using develpoment instead');
console.log('\x1b[31m', 'No configuration file found for "' + process.env.NODE_ENV + '" environment using development instead');
} else {
console.log('\x1b[31m', 'NODE_ENV is not defined! Using default develpoment envrionment');
console.log('\x1b[31m', 'NODE_ENV is not defined! Using default development environment');
}

process.env.NODE_ENV = 'development';
} else {
console.log('\x1b[7m', 'Application loaded using the "' + process.env.NODE_ENV + '" envrionment configuration');
console.log('\x1b[7m', 'Application loaded using the "' + process.env.NODE_ENV + '" environment configuration');
}
console.log('\x1b[0m');
});
Expand All @@ -37,4 +37,4 @@ module.exports = function() {
require.extensions['.server.controller.js'] = require.extensions['.js'];
require.extensions['.server.model.js'] = require.extensions['.js'];
require.extensions['.server.routes.js'] = require.extensions['.js'];
};
};

0 comments on commit bcbf2af

Please sign in to comment.