This commit is contained in:
xl
2024-11-18 14:39:26 +08:00
parent 2be7134ea6
commit 1e5fe2412a
+1 -1
View File
@@ -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]);
}