This commit is contained in:
2021-11-19 10:36:33 +08:00
parent e0537f2ee4
commit 08d19c9c05
+2 -2
View File
@@ -124,7 +124,6 @@ class HotReload extends Command
} }
/** /**
* 重启 * 重启
* *
@@ -143,8 +142,9 @@ class HotReload extends Command
$process->exec(PHP_BINARY, [APP_PATH . "kiri.php", "sw:server", "restart"]); $process->exec(PHP_BINARY, [APP_PATH . "kiri.php", "sw:server", "restart"]);
}); });
$this->process->start(); $this->process->start();
} else {
$this->process->exec(PHP_BINARY, [APP_PATH . "kiri.php", "sw:server", "restart"]);
} }
$this->process->exec(PHP_BINARY, [APP_PATH . "kiri.php", "sw:server", "restart"]);
} }