This commit is contained in:
2022-01-09 17:56:47 +08:00
parent 4fa5c23c10
commit f7ca56a9b0
+4 -1
View File
@@ -224,7 +224,10 @@ class HotReload extends Command
$this->stopManager();
$this->process = new Process(function (Process $process) {
$process->exec(PHP_BINARY, [APP_PATH . "kiri.php", "sw:server", "start"]);
scan_directory(directory('app'), 'App');
$manager = Kiri::app()->getServer();
$manager->runtime_start();
// $process->exec(PHP_BINARY, [APP_PATH . "kiri.php", "sw:server", "start"]);
});
$this->process->start();