From 8b5925440ad21d7e127c2fa4e80bd4ddb6965597 Mon Sep 17 00:00:00 2001 From: Peter 'Pita' Martischka Date: Sun, 4 Mar 2012 21:23:05 +0100 Subject: [PATCH] Fix configuration of express --- src/node/server.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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);