Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit 403520ddc95c1b59b0cf901c075dc0e9401bef5f 1 parent 8e85da3
@jedahan jedahan authored
Showing with 2 additions and 1 deletion.
  1. +1 −0  package.json
  2. +1 −1  src/server.coffee
View
1  package.json
@@ -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
2  src/server.coffee
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.