Skip to content

inotifywait #506

Open
Open

Description

@idkjs

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.

Activity

  1. joseferben commented on Jul 20, 2021

    @joseferben
    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?

  2. aronerben commented on Jul 20, 2021

    @aronerben
    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.

  3. idkjs commented on Jul 20, 2021

    @idkjs
    Author

    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.

  4. aronerben commented on Jul 20, 2021

    @aronerben
    Contributor

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions