forked from kemitix/git-next
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:
parent
d76be1197a
commit
ebbb655bfc
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue