From 36b3d573b502ee972872ead5fac57ec950c57b6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Mon, 7 Sep 2020 11:29:17 +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 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/System/Process/ServerInotify.php b/System/Process/ServerInotify.php index f5f5072b..98588967 100644 --- a/System/Process/ServerInotify.php +++ b/System/Process/ServerInotify.php @@ -48,6 +48,7 @@ class ServerInotify extends Process Event::wait(); } else { $this->loadByDir(APP_PATH . 'app'); + $this->loadByDir(APP_PATH . 'routes'); Timer::tick(2000, [$this, 'tick']); } } @@ -62,6 +63,7 @@ class ServerInotify extends Process public function tick() { $this->loadByDir(APP_PATH . 'app', true); + $this->loadByDir(APP_PATH . 'routes', true); }