mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 20:16:04 +01:00
more test fixes
This commit is contained in:
@@ -65,6 +65,7 @@ module.exports.listen = function (callback) {
|
||||
emitter.all(['templates:compiled', 'meta:js.compiled', 'meta:css.compiled'], function () {
|
||||
winston.info('NodeBB Ready');
|
||||
emitter.emit('nodebb:ready');
|
||||
|
||||
listen(callback);
|
||||
});
|
||||
|
||||
@@ -100,6 +101,19 @@ function initializeNodeBB(callback) {
|
||||
},
|
||||
async.apply(plugins.fireHook, 'static:assets.prepare', {}),
|
||||
async.apply(meta.js.bridgeModules, app),
|
||||
function (next) {
|
||||
plugins.fireHook('static:app.preload', {
|
||||
app: app,
|
||||
middleware: middleware
|
||||
}, next);
|
||||
},
|
||||
function (next) {
|
||||
plugins.fireHook('filter:hotswap.prepare', [], next);
|
||||
},
|
||||
function (hotswapIds, next) {
|
||||
routes(app, middleware, hotswapIds);
|
||||
next();
|
||||
},
|
||||
function (next) {
|
||||
async.series([
|
||||
async.apply(meta.templates.compile),
|
||||
@@ -110,17 +124,6 @@ function initializeNodeBB(callback) {
|
||||
async.apply(languages.init),
|
||||
async.apply(meta.blacklist.load)
|
||||
], next);
|
||||
},
|
||||
function (results, next) {
|
||||
plugins.fireHook('static:app.preload', {
|
||||
app: app,
|
||||
middleware: middleware
|
||||
}, next);
|
||||
},
|
||||
async.apply(plugins.fireHook, 'filter:hotswap.prepare', []),
|
||||
function (hotswapIds, next) {
|
||||
routes(app, middleware, hotswapIds);
|
||||
next();
|
||||
}
|
||||
], callback);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user