This commit is contained in:
2021-12-06 11:44:01 +08:00
parent 34e7fc0392
commit 35189de442
+1 -1
View File
@@ -158,7 +158,7 @@ class HotReload extends Command
$this->logger->warning('change reload'); $this->logger->warning('change reload');
$pid = $this->process?->pid; $pid = $this->process?->pid;
$process = new Process(function (Process $process) { $process = new Process(function (Process $process) {
$process->exec(PHP_BINARY, [APP_PATH . "kiri.php", "sw:server", "restart"]); $process->exec(PHP_BINARY, [APP_PATH . "kiri.php", "sw:server", "start"]);
$this->logger->warning('service stop.'); $this->logger->warning('service stop.');
}); });