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;