Reorganize app/server code a bit.

This commit is contained in:
2012-03-23 00:00:12 +00:00
parent 427631be0b
commit 5cfbcef5bf
3 changed files with 15 additions and 10 deletions

9
server.coffee Normal file
View File

@@ -0,0 +1,9 @@
# Load the app
app = require './app'
# Set port and start server.
app.listen process.env.PORT || 3000
# Print debug
console.log "Express app listening on port %d in %s mode",
app.address().port, app.settings.env