Webpack and jsx response - hot boot not working with docker container

Changed: hot loading does not work in docker, and it looks like this is a docker problem.

After that: "React with webpack" or "React hot loader" on the local host, they work fine, and they work the same for me - anyway, I don’t understand why you would install React hot loader ?

But running it in the container, update / hot boot does not work in any of them. So this could be a question from expert dockers?

+3
source share
3 answers

See question https://github.com/webpack/webpack-dev-server/issues/143 comment from mrnonz:

"watchOptions: {poll: true}"

or easy in package.json instead of "--watch" to do "--watch -watch-poll"

+3
source

I found a workaround; I have a reverse proxy (nginx) running in a container. The proxy is redirected back to the host computer (Mac) on the port. This gives me a hot boot, and most importantly, I have no problems with the cross domain, as I have my database running in another container.

+1
source

If you're looking for the right solution for viewing files on a Mac with Docker, check out docker-osx-dev . It uses boot2docker backstage, but adds rsync support. I tried and it works great for file changes.

+1
source

All Articles