mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-27 12:53:13 +03:00
Merge pull request #1813 from ErisDS/path-change
Move config path.update to config.load
This commit is contained in:
commit
75b261cd69
@ -21,9 +21,13 @@ function loadConfig() {
|
||||
return loader().then(function (config) {
|
||||
// Cache the config.js object's environment
|
||||
// object so we can later refer to it.
|
||||
// Note: this is not the entirity of config.js,
|
||||
// Note: this is not the entirety of config.js,
|
||||
// just the object appropriate for this NODE_ENV
|
||||
ghostConfig = config;
|
||||
|
||||
// can't load theme settings yet as we don't have the API,
|
||||
// but we can load the paths
|
||||
return paths.update(config.url);
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -87,12 +87,9 @@ function setup(server) {
|
||||
Polyglot.instance = new Polyglot();
|
||||
|
||||
// ### Initialisation
|
||||
when.join(
|
||||
// Initialise the models
|
||||
models.init(),
|
||||
// Calculate paths
|
||||
config.paths.update(config().url)
|
||||
).then(function () {
|
||||
|
||||
// Initialise the models
|
||||
models.init().then(function () {
|
||||
// Populate any missing default settings
|
||||
return models.Settings.populateDefaults();
|
||||
}).then(function () {
|
||||
|
Loading…
Reference in New Issue
Block a user