From 82ff5c5d4268df31538d4dfad5295a743069c435 Mon Sep 17 00:00:00 2001 From: xl Date: Mon, 18 Nov 2024 11:27:05 +0800 Subject: [PATCH] eee --- Abstracts/HotReload.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Abstracts/HotReload.php b/Abstracts/HotReload.php index c0400c1..4d97b61 100644 --- a/Abstracts/HotReload.php +++ b/Abstracts/HotReload.php @@ -53,16 +53,15 @@ class HotReload extends AbstractProcess public function process(Process|null $process): void { $this->pipe = inotify_init(); - $this->readDirectory(APP_PATH . '/app/*'); - $this->readDirectory(APP_PATH . '/routes/*'); + foreach (config('reload.listen') as $key => $value) { + $this->readDirectory($value . '/*'); + } while (!$this->isStop()) { $read = inotify_read($this->pipe); foreach ($read as $item) { - $this->reWatch($item['name']); - } $this->reload();