Npm / webpack / gulp based projects¶
Npm, webpack, gulp, and any other tooling that watches, deletes and/or creates a lot of files may cause sync to stop.
In most cases, this has nothing to do with docker-sync at all, but with OSXFS getting stucked in the FS event queue, which then also stops events for unison in our docker image (linux, so inode events) and thus breaks syncing.
composer install, and the likes before
docker-sync start. This way we avoid tracking unnecessary FS events prior to start.
- Sync only necessary folders, e.g.
src/folders. Restructure your project layout if needed.
Other reported solutions¶
docker-sync stop && docker-sync start
docker-sync stop && docker-sync clean && docker-sync start
- Manually going to the unison docker container and executing
kill -1 [PID]on the unison process (suggested by @grigoryosifov)
- Sometimes, the OSXFS itself gets stuck. Docker for Mac restart maybe the only option. Sometimes, an OS restart is the only option.