feat(server): config file watcher will respond to touch
All checks were successful
Rust / build (push) Successful in 1m16s
ci/woodpecker/push/push-next Pipeline was successful
ci/woodpecker/push/cron-docker-builder Pipeline was successful
ci/woodpecker/push/tag-created Pipeline was successful

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()?; let inotify = Inotify::init()?;
inotify.watches().add( inotify.watches().add(
path.clone(), path.clone(),
WatchMask::MODIFY | WatchMask::CREATE | WatchMask::DELETE, WatchMask::MODIFY | WatchMask::CREATE | WatchMask::DELETE | WatchMask::ATTRIB,
)?; )?;
Ok(Self { Ok(Self {
path, path,