This commit is contained in:
xl
2024-11-18 12:21:33 +08:00
parent ab1a18a886
commit bce6870538
+7 -4
View File
@@ -75,12 +75,15 @@ class HotReload extends AbstractProcess
}
while (!$this->isStop()) {
$read = inotify_read($this->pipe);
var_dump($read);
foreach ($read as $item) {
$this->reWatch($this->watches[$item['wd']]);
if (count($read) > 0) {
$this->reload();
foreach (config('reload.listen') as $value) {
$this->reWatch($value);
}
}
$this->reload();
}
}