mirror of
https://github.com/jimeh/heartb.it.git
synced 2026-02-19 12:56:47 +00:00
Reorganize app/server code a bit.
This commit is contained in:
9
server.coffee
Normal file
9
server.coffee
Normal 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
|
||||
Reference in New Issue
Block a user