We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0504869 commit 5a4acd4Copy full SHA for 5a4acd4
server/index.js
@@ -25,7 +25,7 @@ setup(app, {
25
26
// get the intended host and port number, use localhost and port 3000 if not provided
27
const customHost = argv.host || process.env.HOST;
28
-const host = customHost || null; // Let http.Server use its default IPv6/4 host
+const host = customHost || '0.0.0.0'; // Let http.Server use its default IPv6/4 host
29
const prettyHost = customHost || 'localhost';
30
31
// use the gzipped bundle
server/port.js
@@ -1,3 +1,3 @@
1
const argv = require('./argv');
2
3
-module.exports = parseInt(argv.port || process.env.PORT || '3000', 10);
+module.exports = parseInt(process.env.PORT || argv.port || '3000', 10);
0 commit comments