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:
parent
aedbc26e10
commit
f807c124af
3 changed files with 7 additions and 7 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue