This commit is contained in:
2023-04-19 14:41:32 +08:00
parent 6c21470dbb
commit 71caa4880a
+2 -2
View File
@@ -82,7 +82,7 @@ class HotReload extends Command
*/ */
private function startProcess(): void private function startProcess(): void
{ {
$this->process = proc_open([PHP_BINARY, APP_PATH . 'kiri.php', 'sw:server', 'start'], [], $pipes); $this->process = proc_open([PHP_BINARY, APP_PATH . 'kiri.php', 'sw:server', 'restart'], [], $pipes);
} }
/** /**
@@ -283,7 +283,7 @@ class HotReload extends Command
/** /**
* @throws Exception * @throws Exception
*/ */
public function timerReload() public function timerReload(): void
{ {
Context::set('isReloading', true); Context::set('isReloading', true);
$this->trigger_reload(); $this->trigger_reload();