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'); }