diff --git a/kiri-engine/FileListen/FileChangeCustomProcess.php b/kiri-engine/FileListen/FileChangeCustomProcess.php index 1428fc39..f450b6bd 100644 --- a/kiri-engine/FileListen/FileChangeCustomProcess.php +++ b/kiri-engine/FileListen/FileChangeCustomProcess.php @@ -60,9 +60,6 @@ class FileChangeCustomProcess extends Command $driver = Kiri::getDi()->get(Inotify::class, [$this->dirs, $this]); } $make = Barrier::make(); - go(function () { - $this->trigger_reload(); - }); go(function () { $sign = Coroutine::waitSignal(SIGTERM, -1); if ($sign) { @@ -72,6 +69,9 @@ class FileChangeCustomProcess extends Command go(function () use ($driver) { $driver->start(); }); + go(function () { + proc_open("php " . APP_PATH . "kiri.php sw:server start", [], $pipes); + }); Barrier::wait($make); return 0; }