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

Commit

Permalink
Merge pull request #665 from codydaig/mergeissue
Browse files Browse the repository at this point in the history
change _.extend to _.merge
  • Loading branch information
lirantal committed Jul 20, 2015
2 parents 09251d1 + 4d1ae6e commit 53194ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ var initGlobalConfig = function() {
var environmentAssets = require(path.join(process.cwd(), 'config/assets/', process.env.NODE_ENV)) || {};

// Merge assets
var assets = _.extend(defaultAssets, environmentAssets);
var assets = _.merge(defaultAssets, environmentAssets);

// Get the default config
var defaultConfig = require(path.join(process.cwd(), 'config/env/default'));
Expand All @@ -156,7 +156,7 @@ var initGlobalConfig = function() {
var environmentConfig = require(path.join(process.cwd(), 'config/env/', process.env.NODE_ENV)) || {};

// Merge config files
var envConf = _.extend(defaultConfig, environmentConfig);
var envConf = _.merge(defaultConfig, environmentConfig);

var config = _.merge(envConf, (fs.existsSync(path.join(process.cwd(), 'config/env/local.js')) && require(path.join(process.cwd(), 'config/env/local.js'))) || {});

Expand Down

0 comments on commit 53194ff

Please sign in to comment.