Skip to content

Commit 769bec0

Browse files
GAumalaTimer
authored andcommitted
Start the dev server at the specified host (facebook#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 9deda17 commit 769bec0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/start.js

Lines changed: 1 addition & 1 deletion
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)