【程序目录】time.pid 和workerman.pid 生成目录修改到runtime目录

This commit is contained in:
sugar1569 2022-04-22 16:52:00 +08:00
parent d0e41d1d62
commit fb647853f5
2 changed files with 2 additions and 2 deletions

View File

@ -57,7 +57,7 @@ class Timer extends Command
protected function execute(Input $input, Output $output)
{
$this->init($input, $output);
Worker::$pidFile = app()->getRootPath().'timer.pid';
Worker::$pidFile = app()->getRootPath().'runtime/timer.pid';
$task = new Worker();
$task->count = 1;
event('Task_6');

View File

@ -102,7 +102,7 @@ class Workerman extends Command
} else {
$context = [];
}
Worker::$pidFile = app()->getRootPath() . 'workerman.pid';
Worker::$pidFile = app()->getRootPath() . 'runtime/workerman.pid';
if (!$server || $server == 'admin') {
var_dump('admin');
//创建 admin 长连接服务