From 81de2987dba4d397bb668f2ed4e244dccd610552 Mon Sep 17 00:00:00 2001 From: Pradeep Bihani Date: Sun, 7 Jun 2015 11:05:25 +0530 Subject: [PATCH] Update init.js Looks like behaviour has changed for glob on the latest version , on older version they follows the 'call back sync' but on latest versions they removed it. have a look on this isaacs/node-glob#167 --- config/init.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/init.js b/config/init.js index 210eebbcd9..3d2aa8c215 100644 --- a/config/init.js +++ b/config/init.js @@ -14,7 +14,7 @@ module.exports = function() { * 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 */ - var environmentFiles=glob('./config/env/' + process.env.NODE_ENV + '.js') + var environmentFiles=glob.sync('./config/env/' + process.env.NODE_ENV + '.js') if (!environmentFiles.length) { if (process.env.NODE_ENV) { console.error(chalk.red('No configuration file found for "' + process.env.NODE_ENV + '" environment using development instead'));