Fix configuration of express
parent
0e110efe9e
commit
8b5925440a
|
@ -78,7 +78,6 @@ async.waterfall([
|
||||||
{
|
{
|
||||||
//create server
|
//create server
|
||||||
var app = express.createServer();
|
var app = express.createServer();
|
||||||
hooks.callAll("expressCreateServer", {"app": app});
|
|
||||||
|
|
||||||
app.use(function (req, res, next) {
|
app.use(function (req, res, next) {
|
||||||
res.header("Server", serverName);
|
res.header("Server", serverName);
|
||||||
|
@ -87,6 +86,8 @@ async.waterfall([
|
||||||
|
|
||||||
app.configure(function() { hooks.callAll("expressConfigure", {"app": app}); });
|
app.configure(function() { hooks.callAll("expressConfigure", {"app": app}); });
|
||||||
|
|
||||||
|
hooks.callAll("expressCreateServer", {"app": app});
|
||||||
|
|
||||||
//let the server listen
|
//let the server listen
|
||||||
app.listen(settings.port, settings.ip);
|
app.listen(settings.port, settings.ip);
|
||||||
console.log("Server is listening at " + settings.ip + ":" + settings.port);
|
console.log("Server is listening at " + settings.ip + ":" + settings.port);
|
||||||
|
|
Loading…
Reference in New Issue