This commit is contained in:
xl
2024-11-18 13:43:38 +08:00
parent b3777a64e3
commit e669d80bb9
+3
View File
@@ -114,6 +114,9 @@ class HotReload extends AbstractProcess
if (str_ends_with($directory, '.php') === true) { if (str_ends_with($directory, '.php') === true) {
$wd = inotify_add_watch($this->pipe, $directory, IN_MODIFY | IN_MOVE | IN_CREATE | IN_DELETE); $wd = inotify_add_watch($this->pipe, $directory, IN_MODIFY | IN_MOVE | IN_CREATE | IN_DELETE);
var_dump($wd);
$this->watches[$wd] = $directory; $this->watches[$wd] = $directory;
} }
} }