diff --git a/Abstracts/HotReload.php b/Abstracts/HotReload.php index f4ef2ae..b72c9fb 100644 --- a/Abstracts/HotReload.php +++ b/Abstracts/HotReload.php @@ -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); }