Revert "改名"
This reverts commit fdf58326
This commit is contained in:
@@ -204,6 +204,7 @@ class HotReload extends Command
|
||||
public function trigger_reload(string $path = '')
|
||||
{
|
||||
$this->logger->warning('change reload');
|
||||
var_dump($path);
|
||||
if (!empty($path) && str_starts_with($path, CONTROLLER_PATH)) {
|
||||
$pid = file_get_contents(storage('.swoole.pid'));
|
||||
if (!empty($pid) && Process::kill($pid, 0)) {
|
||||
|
||||
Reference in New Issue
Block a user