From 5841fae6c2bde265d52c1d79d9247f5a1d6916a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Fri, 30 Apr 2021 10:59:46 +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 --- HttpServer/Command.php | 2 -- System/Process/ServerInotify.php | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/HttpServer/Command.php b/HttpServer/Command.php index 098e3385..7cefe5e1 100644 --- a/HttpServer/Command.php +++ b/HttpServer/Command.php @@ -40,8 +40,6 @@ class Command extends \Console\Command return 'I don\'t know what I want to do.'; } - exec(PHP_BINARY . ' ' . APP_PATH . 'snowflake runtime:builder'); - /** @var Shutdown $shutdown */ $shutdown = Snowflake::app()->get('shutdown'); if ($shutdown->isRunning() && $dtl->get('action') == 'start') { diff --git a/System/Process/ServerInotify.php b/System/Process/ServerInotify.php index 7a8f93a6..9bc5351d 100644 --- a/System/Process/ServerInotify.php +++ b/System/Process/ServerInotify.php @@ -46,6 +46,7 @@ class ServerInotify extends Process $this->inotify = inotify_init(); $this->events = IN_MODIFY | IN_DELETE | IN_CREATE | IN_MOVE; } + exec(PHP_BINARY . ' ' . APP_PATH . 'snowflake runtime:builder'); }