Skip to content
Snippets Groups Projects
Unverified Commit 1e4ad531 authored by Tomasz Knapik's avatar Tomasz Knapik
Browse files

Fix React dev server not serving outside VM

parent 41c02f6e
No related branches found
No related tags found
No related merge requests found
......@@ -33,6 +33,7 @@ Vagrant.configure(2) do |config|
# within the machine from a port on the host machine. In the example below,
# accessing "localhost:8000" will access port 8000 on the guest machine.
config.vm.network "forwarded_port", guest: 8000, host: 8000, id: "webserver"
config.vm.network "forwarded_port", guest: 3000, host: 3000, id: "reactserver"
# Create a private network, which allows host-only access to the machine
# using a specific IP.
......
......@@ -256,7 +256,7 @@ gulp.task('watch:app', function watch (callback) {
serverOptions
)
server.listen(3000, "localhost", function(err) {
server.listen(3000, "0.0.0.0", function(err) {
if(err) throw new console.PluginError("webpack-dev-server", err);
// Server listening
console.log("[webpack-dev-server]", "Running");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment