From 61b98b9916d907ba3581084ddef8ee22ea504ee0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Tue, 17 Nov 2020 17:00:49 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- System/Process/ServerInotify.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/System/Process/ServerInotify.php b/System/Process/ServerInotify.php index 5428c3f8..a78c7e42 100644 --- a/System/Process/ServerInotify.php +++ b/System/Process/ServerInotify.php @@ -196,9 +196,9 @@ class ServerInotify extends Process $this->trigger_reload(); $this->int = -1; $this->md5Map = []; - $this->loadByDir(APP_PATH . 'app'); - $this->loadByDir(APP_PATH . 'routes'); - + foreach ($this->dirs as $dir) { + $this->loadByDir($dir); + } $this->isReloading = FALSE; $this->isReloadingOut = FALSE;