sihl
sihl copied to clipboard
inotifywait
Is there a version of this setup that can run without inotifywait
which I believe is linux
only?
I am on a mac and would like to run it without docker if that is possible.
Thanks.
The only dependency on inotifywait
should be in the Makefile
for the make dev
command.
inotifywait -e modify -e move -e create -e delete -e attrib -r
pwd --exclude "(_build|logs|Makefile|.git|node_modules)" -qq
Maybe this could be replaced or supplemented with something like fswatch
? @aronerben What do you think?
Maybe this could be replaced or supplemented with something like
fswatch
? @aronerben What do you think?
Sounds good, from what I'm gathering, fswatch
is cross-platform, so we might as well replace inotify
entirely with it.
Stuff I came across tyring to figure it out. https://github.com/mirage/irmin-watcher handles fsevents https://makeplus.net/ -> could listen to the events you want to listen to and run whatever command.
Thanks for the hints, we can dig into it a little more. It is generally on the roadmap to add a more clever "hot-reloading" with incremental builds (I think that is the goal of https://github.com/oxidizing/sihl/issues/385, correct @jerben?). That would make this "external" file watching business obsolete...