From 08d19c9c05afa92707fc8afaebd0c44795321d8b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Fri, 19 Nov 2021 10:36:33 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kiri-engine/FileListen/HotReload.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kiri-engine/FileListen/HotReload.php b/kiri-engine/FileListen/HotReload.php index ded53e0a..9f73ae5f 100644 --- a/kiri-engine/FileListen/HotReload.php +++ b/kiri-engine/FileListen/HotReload.php @@ -124,7 +124,6 @@ class HotReload extends Command } - /** * 重启 * @@ -143,8 +142,9 @@ class HotReload extends Command $process->exec(PHP_BINARY, [APP_PATH . "kiri.php", "sw:server", "restart"]); }); $this->process->start(); + } else { + $this->process->exec(PHP_BINARY, [APP_PATH . "kiri.php", "sw:server", "restart"]); } - $this->process->exec(PHP_BINARY, [APP_PATH . "kiri.php", "sw:server", "restart"]); }