9 Star 6 Fork 0

RockYang / herosphp-app

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
process.php 502 Bytes
一键复制 编辑 原始数据 按行查看 历史
chenzifan 提交于 2022-09-16 10:29 . add process.config.php
<?php
declare(strict_types=1);
use herosphp\core\Config;
use herosphp\GF;
use Workerman\Worker;
require 'boot.php';
// start process worker
// Windows does not support custom processes.
if (str_contains(PHP_OS, 'WINNT') === false) {
$processes = Config::get(name: 'process', default: []);
foreach ($processes as $processName => $config) {
if (!($config['enable'] ?? false)) {
continue;
}
GF::processRun($processName, $config);
}
}
Worker::runAll();
1
https://gitee.com/blackfox/herosphp-app.git
git@gitee.com:blackfox/herosphp-app.git
blackfox
herosphp-app
herosphp-app
master

搜索帮助