webpack-dev-server icon indicating copy to clipboard operation
webpack-dev-server copied to clipboard

Docker support

Open geddski opened this issue 11 years ago • 80 comments

currently when running webpack dev server inside of a docker container, the changes to the source files are not picked up by webpack, so no compilation happens.

Using boot2docker vm on OSX.

geddski avatar Mar 28 '15 17:03 geddski

+1 having the exact same issue, would appreciate an update

Is essentially this issue:

https://github.com/remy/nodemon/issues/419

crestenstclair avatar Apr 27 '15 14:04 crestenstclair

+1

Rodeoclash avatar May 12 '15 23:05 Rodeoclash

+1

bradbarrow avatar May 27 '15 07:05 bradbarrow

+1 the same for me, I can't use it.

yvann avatar May 28 '15 16:05 yvann

+1

evandegr avatar May 28 '15 20:05 evandegr

+1

myzone avatar May 31 '15 09:05 myzone

+1

muraken720 avatar Jun 06 '15 18:06 muraken720

+1

joernroeder avatar Jun 07 '15 01:06 joernroeder

+1

johnknaack avatar Jun 15 '15 15:06 johnknaack

Use this project: https://github.com/brikis98/docker-osx-dev

It picks up file changes events

saulshanabrook avatar Jun 16 '15 20:06 saulshanabrook

docker-osx-dev works great for me. Also its woking well with piping.

tomchentw avatar Jul 19 '15 05:07 tomchentw

I am having the same problem, but I feel it's for a different reason. I'm using the --host 0.0.0.0 option to allow the server to listen on all interfaces, but when used in conjunction with the --hot flag, this causes problems. The hot reloader uses the provided host to create an absolute url instead of using a relative url, so all of my reloading ajax calls are going to http://0.0.0.0:8080/socket.io/ instead of just socket.io/, which would work no matter what the host/port was. I'm also proxying the server behind nginx that happens to be running on the same port, but if I wasn't, then this issue would be even worse.

lily-mara avatar Jul 23 '15 00:07 lily-mara

+1

xaviervia avatar Jul 23 '15 14:07 xaviervia

+1

vectart avatar Jul 23 '15 14:07 vectart

@natemara about your issue, I worked around that by setting the config:

module.exports = {
  entry: {
    app: [
      "webpack-dev-server/client?:8080/",
      'webpack/hot/dev-server',
      "./src/app.coffee"
    ]
  }
}

...buuut, big disclaimer, it just fixed the socket.io address, not the livereload, which is still not working (webpack doesn't rebuild the files)

xaviervia avatar Jul 23 '15 14:07 xaviervia

+1

fordlee404 avatar Aug 13 '15 03:08 fordlee404

+1

plouc avatar Aug 14 '15 05:08 plouc

+1

svenhornberg avatar Aug 18 '15 15:08 svenhornberg

+1

jweidler avatar Sep 01 '15 13:09 jweidler

The problem has been sovled by Mark Wolfe, I have tested it in my MacBookPro.

ghost avatar Sep 11 '15 14:09 ghost