diff --git a/src/node/server.js b/src/node/server.js index 489cae74f..19df6e728 100644 --- a/src/node/server.js +++ b/src/node/server.js @@ -78,7 +78,6 @@ async.waterfall([ { //create server var app = express.createServer(); - hooks.callAll("expressCreateServer", {"app": app}); app.use(function (req, res, next) { res.header("Server", serverName); @@ -87,6 +86,8 @@ async.waterfall([ app.configure(function() { hooks.callAll("expressConfigure", {"app": app}); }); + hooks.callAll("expressCreateServer", {"app": app}); + //let the server listen app.listen(settings.port, settings.ip); console.log("Server is listening at " + settings.ip + ":" + settings.port);