Skip to content

Commit 6b41834

Browse files
committed
change localhost to 0.0.0.0 to access local server on mobile
1 parent 4b42a45 commit 6b41834

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

gulpfile.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,11 +78,11 @@ gulp.task(
7878
stats: {
7979
colors: true
8080
}
81-
}).listen(DEV_PORT, "localhost", function(err, result) {
81+
}).listen(DEV_PORT, "0.0.0.0", function(err, result) {
8282
if (err) {
8383
console.log(err);
8484
} else {
85-
const server_url = `http://localhost:${DEV_PORT}`;
85+
const server_url = `http://0.0.0.0:${DEV_PORT}`;
8686
console.log(`> Dev Server started at ${server_url}`);
8787
opn(server_url);
8888
}

0 commit comments

Comments
 (0)