Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

inotifywait #506

Open
idkjs opened this issue Jul 18, 2021 · 4 comments
Open

inotifywait #506

idkjs opened this issue Jul 18, 2021 · 4 comments

Comments

@idkjs
Copy link

idkjs commented Jul 18, 2021

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.

@joseferben
Copy link
Contributor

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?

@aronerben
Copy link
Contributor

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.

@idkjs
Copy link
Author

idkjs commented Jul 20, 2021

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.

@aronerben
Copy link
Contributor

aronerben commented Jul 20, 2021

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 #385, correct @Jerben?). That would make this "external" file watching business obsolete...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants