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;