don't try to listen to a port twice :P

This commit is contained in:
2011-12-24 19:15:39 +00:00
parent b50b9a38ba
commit db4055f175
2 changed files with 1 additions and 3 deletions

2
app.js
View File

@@ -29,7 +29,7 @@
return res.render('index');
});
app.listen(3000);
app.listen(process.env.PORT || 3000);
console.log("Express server listening on port %d in %s mode", app.address().port, app.settings.env);