This commit is contained in:
2023-07-31 23:16:59 +08:00
parent 98bda3d45e
commit 59419edbdf
+1 -1
View File
@@ -72,7 +72,7 @@ class Server
if (\config('reload.hot') === false) { if (\config('reload.hot') === false) {
$this->router->scan_build_route(); $this->router->scan_build_route();
} else { } else {
on(OnWorkerStart::class, [$this, 'hotLoad']); on(OnWorkerStart::class, [$this->router, 'scan_build_route']);
$this->addProcess(HotReload::class); $this->addProcess(HotReload::class);
} }