From 67688043d29a01974d6f5098a148d535e2a40b9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Thu, 4 Nov 2021 16:33:59 +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 | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/kiri-engine/FileListen/FileChangeCustomProcess.php b/kiri-engine/FileListen/FileChangeCustomProcess.php index e0c10a55..1e1ca03e 100644 --- a/kiri-engine/FileListen/FileChangeCustomProcess.php +++ b/kiri-engine/FileListen/FileChangeCustomProcess.php @@ -4,10 +4,10 @@ namespace Kiri\FileListen; use Exception; use Kiri\Abstracts\Config; +use Kiri\Abstracts\Logger; use Kiri\Exception\ConfigException; use Kiri\Kiri; use Swoole\Coroutine\Barrier; -use Swoole\Process; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputInterface; @@ -92,12 +92,8 @@ class FileChangeCustomProcess extends Command */ public function trigger_reload() { + Kiri::getDi()->get(Logger::class)->warning('change reload'); + proc_open("php " . APP_PATH . "kiri.php sw:server restart", [], $pipes); - -// exec(PHP_BINARY . ' ' . APP_PATH . 'kiri.php runtime:builder', $output); -// -// print_r(implode(PHP_EOL, $output)); - -// Kiri::reload(); } }