Skip to content

Commit

Permalink
Update init.js
Browse files Browse the repository at this point in the history
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
  • Loading branch information
pradeepbihani committed Jun 7, 2015
1 parent c54f393 commit 81de298
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'));
Expand Down

0 comments on commit 81de298

Please sign in to comment.