Permalink
Browse files

default to port 8080, set port in package.json for server

  • Loading branch information...
1 parent 8e85da3 commit 403520ddc95c1b59b0cf901c075dc0e9401bef5f @jedahan jedahan committed Sep 12, 2011
Showing with 2 additions and 1 deletion.
  1. +1 −0 package.json
  2. +1 −1 src/server.coffee
View
@@ -2,6 +2,7 @@
, "description" : "Swarm visualisation for a fleet of vehicles"
, "version" : "0.0.1"
, "author" : "Jonathan Dahan <jonathan.dahan@buglabs.net>"
+, "config" : { "port" : "8080" }
, "dependencies" :
{ "coffee-script": "1.1.x"
, "express": "2.4.x"
View
@@ -41,4 +41,4 @@ app.get '/locations', (req, res) ->
app.use gzippo.staticGzip(__dirname + '/public')
app.use app.router
-app.listen 80
+app.listen process.env.npm_package_config_port or 8080

0 comments on commit 403520d

Please sign in to comment.