Skip to content

Commit 5a4acd4

Browse files
committed
port and host changes in node server
1 parent 0504869 commit 5a4acd4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

server/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ setup(app, {
2525

2626
// get the intended host and port number, use localhost and port 3000 if not provided
2727
const customHost = argv.host || process.env.HOST;
28-
const host = customHost || null; // Let http.Server use its default IPv6/4 host
28+
const host = customHost || '0.0.0.0'; // Let http.Server use its default IPv6/4 host
2929
const prettyHost = customHost || 'localhost';
3030

3131
// use the gzipped bundle

server/port.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
const argv = require('./argv');
22

3-
module.exports = parseInt(argv.port || process.env.PORT || '3000', 10);
3+
module.exports = parseInt(process.env.PORT || argv.port || '3000', 10);

0 commit comments

Comments
 (0)