Skip to content
This repository was archived by the owner on Jan 26, 2019. It is now read-only.

Commit ef86877

Browse files
GAumalaTimer
authored andcommitted
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.
1 parent 3124328 commit ef86877

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/react-scripts/scripts/start.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ function run(port) {
8383
addWebpackMiddleware(devServer);
8484

8585
// Launch WebpackDevServer.
86-
devServer.listen(port, err => {
86+
devServer.listen(port, host, err => {
8787
if (err) {
8888
return console.log(err);
8989
}

0 commit comments

Comments
 (0)