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