0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-24 23:48:13 -05:00

Merge pull request #6600 from ErisDS/config-fix

Always override database config + exit tests on error
This commit is contained in:
Sebastian Gierlinger 2016-03-15 11:08:50 +01:00
commit d71f46a40a
4 changed files with 9 additions and 0 deletions

View file

@ -104,6 +104,12 @@ ConfigManager.prototype.set = function (config) {
// local copy with properties that have been explicitly set. // local copy with properties that have been explicitly set.
_.merge(this._config, config); _.merge(this._config, config);
// Special case for the database config, which should be overridden not merged
if (config && config.database) {
this._config.database = config.database;
}
// Special case for the them.navigation JSON object, which should be overridden not merged // Special case for the them.navigation JSON object, which should be overridden not merged
if (config && config.theme && config.theme.navigation) { if (config && config.theme && config.theme.navigation) {
this._config.theme.navigation = config.theme.navigation; this._config.theme.navigation = config.theme.navigation;

View file

@ -49,6 +49,7 @@ describe('Admin Routing', function () {
}).catch(function (e) { }).catch(function (e) {
console.log('Ghost Error: ', e); console.log('Ghost Error: ', e);
console.log(e.stack); console.log(e.stack);
done(e);
}); });
}); });

View file

@ -36,6 +36,7 @@ describe('Channel Routes', function () {
}).catch(function (e) { }).catch(function (e) {
console.log('Ghost Error: ', e); console.log('Ghost Error: ', e);
console.log(e.stack); console.log(e.stack);
done(e);
}); });
}); });

View file

@ -46,6 +46,7 @@ describe('Frontend Routing', function () {
}).catch(function (e) { }).catch(function (e) {
console.log('Ghost Error: ', e); console.log('Ghost Error: ', e);
console.log(e.stack); console.log(e.stack);
done(e);
}); });
}); });