This commit is contained in:
2020-09-07 11:29:17 +08:00
parent 5eece32104
commit 36b3d573b5
+2
View File
@@ -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);
}