3 ms·
Don't you lose inotify this way? Most autoreload solutions trigger on inotify events.
by kalmi10 11y ago
Don't you lose inotify this way? Most autoreload solutions trigger on inotify events.
- NathanKP 11y agoNo, it works fine for me. The node.js livereload code running inside the container can detect the file changes just fine, and it just alerts the browser running on my host computer via a port that has been forwarded from inside the container to the docker host, and from the docker host to the VM host. And by the way this setup is bidirectional. If code inside my container, or an SSH session running inside my container makes a disk change, that change is also reflected on the version of the folder that runs on the host. So if you don't want to go through the effort of doing the port forwarding, you can run live reload on your host machine, and reload the browser automatically in response to changes that were made by the container.