Skip to content

Commit 9005437

Browse files
committed
Fixed open(runtime/hyperf.pid) failed, Error: No such file or directory.
1 parent e0ed0ce commit 9005437

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/Controller/IndexController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public function index()
2121

2222
return [
2323
'method' => $method,
24-
'message' => "Hello $user.",
24+
'message' => "Hello {$user}.",
2525
];
2626
}
2727
}

config/autoload/server.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
'settings' => [
3131
'enable_coroutine' => true,
3232
'worker_num' => swoole_cpu_num(),
33-
'pid_file' => 'runtime/hyperf.pid',
33+
'pid_file' => BASE_PATH . '/runtime/hyperf.pid',
3434
'open_tcp_nodelay' => true,
3535
'max_coroutine' => 100000,
3636
'open_http2_protocol' => true,

0 commit comments

Comments
 (0)