--port should take precedence over environment setting

This commit is contained in:
Jeff Parsons 2015-07-29 10:34:51 -07:00 committed by Jeff Parsons
commit 24072c4c06

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 || args.argv['port'] || 8088);
app.set('port', args.argv['port'] || process.env.PORT || 8088);
/*
* I already include the following in the <head> tag of my HTML documents: