This commit is contained in:
2021-11-18 16:42:24 +08:00
parent a040099b99
commit 446fd740f2
+1 -1
View File
@@ -116,7 +116,7 @@ class HotReload extends Command
Kiri::getDi()->get(Logger::class)->warning('change reload'); Kiri::getDi()->get(Logger::class)->warning('change reload');
Coroutine::create(function () { Coroutine::create(function () {
$pid = file_get_contents(storage('.swoole.pid')); $pid = file_get_contents(storage('.swoole.pid'));
$source = proc_open("php " . APP_PATH . "kiri.php start", [], $pipes); $source = proc_open("php " . APP_PATH . "kiri.php sw:server start", [], $pipes);
if (!empty($pid)) { if (!empty($pid)) {
Process::kill($pid, SIGTERM); Process::kill($pid, SIGTERM);
} }