webman 文件监控 GatewayWorker

webmanchin

问题描述

webman 使用 GatewayWorker的时候 文件监控 监控不到GatewayWorker 的文件,改哪里可以监控它

632 3 1
3个回答

webmanchin

webman的 Monitor 这个 怎么改 监控到webman webman/plugin/webman/gateway 这个目录

  • 暂无评论
taozywu

webman的 Monitor 这个 怎么改 监控到webman webman/plugin/webman/gateway 这个目录

config/process.php

return [
    // File update detection and automatic reload
    'monitor' => [
        'handler' => process\Monitor::class,
        'reloadable' => false,
        'constructor' => [
            // Monitor these directories
            'monitor_dir' => [
                app_path(),
                config_path(),
                base_path() . '/process',
                base_path() . '/support',
                base_path() . '/resource',
                base_path() . '/.env',
                base_path() . '/plugin/webman/gateway',
            ],
            // Files with these suffixes will be monitored
            'monitor_extensions' => [
                'php', 'html', 'htm', 'env'
            ]
        ]
    ]
];
  • 小W 2022-10-18

    这个监控生产环境建议使用吗?

taozywu

你是想做平滑重启是这样吗?

可以参考https://www.workerman.net/doc/workerman/faq/reload-principle.html

  • 暂无评论
年代过于久远,无法发表回答
🔝