Skip to content

Commit

Permalink
Start the dev server at the specified host (#1301)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
GAumala authored and Timer committed Apr 19, 2017
1 parent 3124328 commit ef86877
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react-scripts/scripts/start.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit ef86877

Please sign in to comment.