feat(server): config file watcher will respond to touch

You can now trigger a server reload by `touch`ing the
`git-next-server.toml` file.
This commit is contained in:
Paul Campbell 2024-05-23 09:01:57 +01:00
parent d76be1197a
commit ebbb655bfc

View file

@ -32,7 +32,7 @@ impl FileWatcher {
let inotify = Inotify::init()?;
inotify.watches().add(
path.clone(),
WatchMask::MODIFY | WatchMask::CREATE | WatchMask::DELETE,
WatchMask::MODIFY | WatchMask::CREATE | WatchMask::DELETE | WatchMask::ATTRIB,
)?;
Ok(Self {
path,