From ef8687733160e8af7d2742b3d6e4b7cbcfc7e8c7 Mon Sep 17 00:00:00 2001 From: Gabriel Aumala Date: Tue, 18 Apr 2017 20:06:54 -0500 Subject: [PATCH] Start the dev server at the specified host (#1301) Pass the host from environment variable as argument of the devServer's listen function instead of a field of options object. Set the default host to 0.0.0.0 instead of localhost. --- packages/react-scripts/scripts/start.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-scripts/scripts/start.js b/packages/react-scripts/scripts/start.js index 12cce8ed313..a5cfa5299c4 100644 --- a/packages/react-scripts/scripts/start.js +++ b/packages/react-scripts/scripts/start.js @@ -83,7 +83,7 @@ function run(port) { addWebpackMiddleware(devServer); // Launch WebpackDevServer. - devServer.listen(port, err => { + devServer.listen(port, host, err => { if (err) { return console.log(err); }