mirror of
https://github.com/crmeb/CRMEB.git
synced 2026-10-28 13:31:04 +00:00
fix(workerman): 统一 workerman/timer 运行时文件到 runtime 目录
timer 命令未设置 logFile/statusFile,workerman 回退默认路径导致日志与状态文件写入 vendor/workerman/,现统一指定到 runtime 目录;补充 docker mysql 数据目录忽略规则。
This commit is contained in:
parent
4685696752
commit
53bd39eabd
4
.gitignore
vendored
4
.gitignore
vendored
@ -24,3 +24,7 @@
|
||||
/frontend/uni-app/node_modules/
|
||||
/frontend/uni-app/.env
|
||||
/frontend/uni-app/.env.development
|
||||
|
||||
#docker
|
||||
/docker/mysql/data/*
|
||||
/docker/mysql/log/*
|
||||
|
||||
@ -65,6 +65,8 @@ class Timer extends Command
|
||||
{
|
||||
$this->init($input, $output);
|
||||
Worker::$pidFile = app()->getRootPath() . 'runtime/timer.pid';
|
||||
Worker::$logFile = app()->getRootPath() . 'runtime/timer.log';
|
||||
Worker::$statusFile = app()->getRootPath() . 'runtime/timer.status';
|
||||
$task = new Worker();
|
||||
date_default_timezone_set('PRC');
|
||||
$task->count = 1;
|
||||
|
||||
@ -106,6 +106,7 @@ class Workerman extends Command
|
||||
$server = $this->init($input, $output);
|
||||
Worker::$pidFile = app()->getRootPath() . 'runtime/workerman.pid';
|
||||
Worker::$logFile = app()->getRootPath() . 'runtime/workerman.log';
|
||||
Worker::$statusFile = app()->getRootPath() . 'runtime/workerman.status';
|
||||
|
||||
if (!$server || $server == 'gateway') {
|
||||
//创建统一长连接网关服务(所有长链接业务共用此端口)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user