From 6eeae257e58aeddf27617adfbc4efcf014f48a08 Mon Sep 17 00:00:00 2001 From: Gabriel Aumala Date: Tue, 20 Dec 2016 19:07:22 -0500 Subject: [PATCH] Start the dev server at the specified host 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); }