mirror of
https://github.com/crmeb/CRMEB.git
synced 2026-10-30 22:40:48 +00:00
【程序目录】time.pid 和workerman.pid 生成目录修改到runtime目录
This commit is contained in:
parent
d0e41d1d62
commit
fb647853f5
@ -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');
|
||||
|
||||
@ -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 长连接服务
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user