From a75561a415bc14684f67b96445fb2b541b9d369a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Tue, 15 Feb 2022 17:19:06 +0800 Subject: [PATCH] modify plugin name --- kiri-engine/FileListen/HotReload.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kiri-engine/FileListen/HotReload.php b/kiri-engine/FileListen/HotReload.php index 8c053ae0..41fd03b0 100644 --- a/kiri-engine/FileListen/HotReload.php +++ b/kiri-engine/FileListen/HotReload.php @@ -213,7 +213,7 @@ class HotReload extends Command $this->int = 1; $this->stopServer(); $this->process = new Process(function (Process $process) { - $process->exec(PHP_BINARY, [APP_PATH . "kiri.php", "sw:server", "start"]); + Kiri::app()->getServer()->start(); }); $this->process->start(); $this->int = -1;