This commit is contained in:
2021-11-19 18:15:05 +08:00
parent a855765365
commit 8bbb6adcc7
+1 -1
View File
@@ -138,7 +138,7 @@ class HotReload extends Command
public function trigger_reload()
{
$this->logger->warning('change reload');
$pid = $this->process->pid;
$pid = $this->process?->pid;
$process = new Process(function (Process $process) {
$process->exec(PHP_BINARY, [APP_PATH . "kiri.php", "sw:server", "restart"]);
});