From 71caa4880ac5378dffe8e12d754d221b977c613d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Wed, 19 Apr 2023 14:41:32 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=98=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- HotReload.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/HotReload.php b/HotReload.php index 43d9c00..233c1dc 100644 --- a/HotReload.php +++ b/HotReload.php @@ -82,7 +82,7 @@ class HotReload extends Command */ private function startProcess(): void { - $this->process = proc_open([PHP_BINARY, APP_PATH . 'kiri.php', 'sw:server', 'start'], [], $pipes); + $this->process = proc_open([PHP_BINARY, APP_PATH . 'kiri.php', 'sw:server', 'restart'], [], $pipes); } /** @@ -283,7 +283,7 @@ class HotReload extends Command /** * @throws Exception */ - public function timerReload() + public function timerReload(): void { Context::set('isReloading', true); $this->trigger_reload();