Fix configuration of express
parent
0e110efe9e
commit
8b5925440a
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue