Fix configuration of express

pull/557/head
Peter 'Pita' Martischka 2012-03-04 21:23:05 +01:00
parent 0e110efe9e
commit 8b5925440a
1 changed files with 2 additions and 1 deletions

View File

@ -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);