From ebbb655bfca3561059e068606a32dcb17d490f5e Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Thu, 23 May 2024 09:01:57 +0100 Subject: [PATCH] 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. --- crates/server/src/actors/file_watcher.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/server/src/actors/file_watcher.rs b/crates/server/src/actors/file_watcher.rs index 4ad2e92..52875b9 100644 --- a/crates/server/src/actors/file_watcher.rs +++ b/crates/server/src/actors/file_watcher.rs @@ -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,