diff --git a/ServerCommand.php b/ServerCommand.php index b54a8a0..6c4a361 100644 --- a/ServerCommand.php +++ b/ServerCommand.php @@ -141,8 +141,8 @@ class ServerCommand extends Command */ protected function start(InputInterface $input): int { - $this->eventProvider->on(OnWorkerStart::class, [di(Router::class), 'scan_build_route']); $this->asyncServer->addProcess(config('processes', [])); + $this->eventProvider->on(OnWorkerStart::class, [di(Router::class), 'scan_build_route']); if (\config('reload.hot', false) === true) { $this->asyncServer->addProcess([HotReload::class]); }