From 187b4311eb7eac340e10b9668ddbc8bcb76ee944 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Thu, 4 Nov 2021 17:56:39 +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/FileChangeCustomProcess.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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; }