Closed Tusky closed 4 years ago
~Looking into it, the issue seems to be that node itself is not registering file events through mounted windows volumes.~
~I don't think this is a cookiecutter issue. Nodemon could work but I'm not that familiar to try and implement that.~
~But if anyone comes from a google search what I did is pretty simple:~ ~I've installed nodejs on my windows machine, ran npm install, and started the gulp task in pycharm. Just like I would have without docker.~
Nevermind, fixed it!
What happened?
I've created a project using cookiecutter, didn't touch the code at all so I can preserve what should be working, but the node container is not receiving file update changes. I've tried adding
:consistent
to the volume as well. WSL2 + Windows 10 + Pycharm, exact cookiecutter config pasted below. Docker 2.3.0.3What should've happened instead?
container should register file changes and refresh page.
Steps to reproduce
cd my_awesome_project/
docker-compose -f local.yml up
Open browsersync on
localhost:3000
navigate to About changeabout.html
contents, save the file. Nothing happens.Django registers the file change fine multiple times, but node/browsersync is stuck on: