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()?;
|
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,
|
||||||
|
|
Loading…
Reference in a new issue