mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-30 21:40:39 +03:00
Refactored app service init to load config
no-issue
This commit is contained in:
parent
d31395412b
commit
29948da3bc
@ -3,12 +3,11 @@ const Promise = require('bluebird');
|
||||
const common = require('../../lib/common');
|
||||
const config = require('../../config');
|
||||
const loader = require('./loader');
|
||||
const internalApps = config.get('apps:internal');
|
||||
|
||||
module.exports = {
|
||||
init: function () {
|
||||
debug('init begin');
|
||||
const appsToLoad = internalApps;
|
||||
const appsToLoad = config.get('apps:internal');
|
||||
|
||||
return Promise.map(appsToLoad, appName => loader.activateAppByName(appName))
|
||||
.catch(function (err) {
|
||||
|
Loading…
Reference in New Issue
Block a user