From 0813c3e05f72b69e4ab220e811d721a54a149194 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Fri, 30 Apr 2021 11:15:57 +0800 Subject: [PATCH] e --- HttpServer/Command.php | 9 +++++++++ System/Process/ServerInotify.php | 1 - 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/HttpServer/Command.php b/HttpServer/Command.php index 7cefe5e1..b08d50c3 100644 --- a/HttpServer/Command.php +++ b/HttpServer/Command.php @@ -50,7 +50,16 @@ class Command extends \Console\Command if ($dtl->get('action') == 'stop') { return 'shutdown success.'; } + + $this->generate_runtime_builder(); + return $manager->start(); } + + private function generate_runtime_builder() + { + exec(PHP_BINARY . ' snowflake runtime:builder'); + } + } diff --git a/System/Process/ServerInotify.php b/System/Process/ServerInotify.php index 9bc5351d..7a8f93a6 100644 --- a/System/Process/ServerInotify.php +++ b/System/Process/ServerInotify.php @@ -46,7 +46,6 @@ 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'); }