Permalink
Browse files

added optional listening port

  • Loading branch information...
1 parent ab68754 commit b7525a3c82e4e1aa4b645998ea91fcf7974aabb3 Marcel Duran committed Jun 25, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/nodeserver/server.js
View
2 src/nodeserver/server.js
@@ -11,7 +11,7 @@ var express = require('express'),
http = require('http'),
url = require('url'),
fs = require('fs'),
- appPort = process.env.app_port || 15785,
+ appPort = process.argv[2] || process.env.app_port || 15785,
app = express.createServer(),
reTrue = /^(true|1|yes)$/i,

0 comments on commit b7525a3

Please sign in to comment.