Skip to content

Commit dd64ef2

Browse files
committed
make port parametric.
1 parent 574f4be commit dd64ef2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

TODO.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
. unmerged, added by us
2323
. unmerged, added by them
2424
. unmerged, both added
25-
. Start program using custom port
2625
. Continuous output for clone, pull
2726
. Toggle whitespace while showing diff
2827
. Stage selected lines
@@ -65,4 +64,5 @@
6564
- . Show branches graph
6665
-. Handle merging // https://git-scm.com/book/en/v2/Git-Branching-Basic-Branching-and-Merging
6766
-. encodeURIComponent instead of complex >>> structure.
68-
-. Add loaders to all git operations
67+
-. Add loaders to all git operations
68+
-. Start program using custom port

bin/www

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ var http = require('http');
1212
* Get port from environment and store in Express.
1313
*/
1414

15-
var port = normalizePort(process.env.PORT || '3000');
15+
var port = normalizePort(process.argv[2] || process.env.PORT || '3000');
1616
app.set('port', port);
1717

1818
/**

0 commit comments

Comments
 (0)