Skip to content

Commit

Permalink
feat(server): server port can now be defined using PORT environment v…
Browse files Browse the repository at this point in the history
…ariable
  • Loading branch information
abe33 committed Jun 13, 2013
1 parent 946d757 commit 60ddb05
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
7 changes: 4 additions & 3 deletions lib/server.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions src/server.coffee
Expand Up @@ -102,8 +102,9 @@ exports.run = (options) ->

res.send content

app.listen 5000
console.log 'Server listening on port 5000'.cyan
port = process.env.PORT or 5000
app.listen port
console.log "Server listening on port #{port}".cyan

Q.defer().promise

0 comments on commit 60ddb05

Please sign in to comment.