server.js now supports "--port=number" as yet another way of starting the Node server with a specific port number

This commit is contained in:
Jeff Parsons 2014-11-02 16:21:26 -08:00 committed by jeffpar
commit f807c124af
3 changed files with 7 additions and 7 deletions

View file

@ -75,7 +75,7 @@ HTMLOut.setOptions({'cache': fCache, 'console': fConsole, 'debug': fDebug, 'rebu
var app = express();
app.enable("strict routing");
app.set('port', process.env.PORT || 8088);
app.set('port', process.env.PORT || args.argv['port'] || 8088);
/*
* I already include the following in the <head> tag of my HTML documents: