Revert "改名"
This reverts commit fdf58326
This commit is contained in:
@@ -210,19 +210,11 @@ class HotReload extends Command
|
|||||||
Process::kill($pid, SIGUSR1);
|
Process::kill($pid, SIGUSR1);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if ($this->int == 1) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
$this->int = 1;
|
|
||||||
$this->stopServer();
|
$this->stopServer();
|
||||||
$this->process = new Process(function (Process $process) {
|
$this->process = new Process(function (Process $process) {
|
||||||
$process->exec(PHP_BINARY, [APP_PATH . "kiri.php", "sw:server", "start"]);
|
$process->exec(PHP_BINARY, [APP_PATH . "kiri.php", "sw:server", "start"]);
|
||||||
});
|
});
|
||||||
$this->process->start();
|
$this->process->start();
|
||||||
|
|
||||||
var_dump(1);
|
|
||||||
|
|
||||||
$this->int = -1;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user