'use strict';

/**
 * Module dependencies.
 */
var glob = require('glob');

/**
 * Module init function.
 */
module.exports = function() {
    /**
     * Before we begin, lets set the envrionment 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', {
        sync: true
    }, function(err, environmentFiles) {
    	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');
    		} else {
    			console.log('\x1b[31m', 'NODE_ENV is not defined! Using default develpoment envrionment');
    		}

    		process.env.NODE_ENV = 'development';
    	} else {
    		console.log('\x1b[7m', 'Application loaded using the "' + process.env.NODE_ENV + '" envrionment configuration');
    	}
    	console.log('\x1b[0m');
    });

    /**
     * Add our server node extensions
     */
    require.extensions['.server.controller.js'] = require.extensions['.js'];
    require.extensions['.server.model.js'] = require.extensions['.js'];
    require.extensions['.server.routes.js'] = require.extensions['.js'];
};
@@ -176,26 +176,26 @@
  set the env
-r
 i
+r
 onment varia
@@ -614,26 +614,26 @@
 ENV + '%22 env
-r
 i
+r
 onment using
@@ -634,26 +634,26 @@
  using devel
-p
 o
+p
 ment instead
@@ -751,18 +751,18 @@
 evel
-p
 o
+p
 ment env
 rion
@@ -753,26 +753,26 @@
 elopment env
-r
 i
+r
 onment');%0A  
@@ -929,18 +929,18 @@
 + '%22 env
-r
 i
+r
 onment c
@@ -1278,8 +1278,9 @@
 js'%5D;%0A%7D;
+%0A

Update init.js