This commit is contained in:
2020-11-17 17:10:27 +08:00
parent e6695a83e2
commit 8525f499ab
+3 -3
View File
@@ -64,12 +64,12 @@ class ServerInotify extends Process
*/
public function tick()
{
$this->loadByDir(APP_PATH . 'app', true);
$this->loadByDir(APP_PATH . 'routes', true);
$this->loadByDir(__DIR__ . '/../../', true);
if ($this->isReloading) {
return;
}
$this->loadByDir(APP_PATH . 'app', true);
$this->loadByDir(APP_PATH . 'routes', true);
$this->loadByDir(__DIR__ . '/../../', true);
Timer::after(2000, [$this, 'tick']);
}