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

Revert "Fix React dev server not serving outside VM"

This reverts commit 4e73bd1d6c2b726a58d51f26e2a7cb6db85b6ffe.
parent ac135c27
No related branches found
No related tags found
No related merge requests found
......@@ -33,7 +33,6 @@ 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, "0.0.0.0", function(err) {
server.listen(3000, "localhost", 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