From a147de86fb4f7d09a54770382297bbed2a7cae2d Mon Sep 17 00:00:00 2001 From: Stuiart Stent Date: Fri, 18 Jan 2013 08:57:39 -0500 Subject: [PATCH] just tidying up the server stsat msg --- test/app.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/test/app.js b/test/app.js index 0226c43..24f2028 100644 --- a/test/app.js +++ b/test/app.js @@ -32,6 +32,7 @@ app.configure(function(){ res.locals.session = req.session; next(); }); + app.set('port', 3000); app.use(app.router); app.use(express.static(__dirname + '/public')); }); @@ -51,7 +52,7 @@ require('./routes/users')(app); require('./routes/session')(app); require('./routes/articles')(app); -//http.listen(3000 -http.createServer(app).listen(3000, function(){ - console.log("Express server listening on port %d in %s mode"); -}); \ No newline at end of file +http.createServer(app).listen(app.get("port"), function(){ + console.log ("Server listening on port " + app.get("port")); +}); +