This commit is contained in:
xl
2024-11-18 12:07:24 +08:00
parent cc98a527cd
commit 7360a8107b
+2 -2
View File
@@ -66,7 +66,7 @@ class HotReload extends AbstractProcess
$this->pipe = inotify_init();
foreach (config('reload.listen') as $key => $value) {
$this->readDirectory($value . '/*');
$this->readDirectory($value);
}
while (!$this->isStop()) {
$read = inotify_read($this->pipe);
@@ -136,7 +136,7 @@ class HotReload extends AbstractProcess
continue;
}
if (is_dir($data)) {
$this->readDirectory($data . DIRECTORY_SEPARATOR . '*');
$this->readDirectory($data);
} else {
$this->readFile($data);
}