This commit is contained in:
2021-04-30 11:15:57 +08:00
parent 5841fae6c2
commit 0813c3e05f
2 changed files with 9 additions and 1 deletions
+9
View File
@@ -50,7 +50,16 @@ class Command extends \Console\Command
if ($dtl->get('action') == 'stop') { if ($dtl->get('action') == 'stop') {
return 'shutdown success.'; return 'shutdown success.';
} }
$this->generate_runtime_builder();
return $manager->start(); return $manager->start();
} }
private function generate_runtime_builder()
{
exec(PHP_BINARY . ' snowflake runtime:builder');
}
} }
-1
View File
@@ -46,7 +46,6 @@ class ServerInotify extends Process
$this->inotify = inotify_init(); $this->inotify = inotify_init();
$this->events = IN_MODIFY | IN_DELETE | IN_CREATE | IN_MOVE; $this->events = IN_MODIFY | IN_DELETE | IN_CREATE | IN_MOVE;
} }
exec(PHP_BINARY . ' ' . APP_PATH . 'snowflake runtime:builder');
} }