请教Linux下WebMan自动更新问题

leedom

环境是centos7 虚拟机 运行php start.php start

去更新代码, 但是并没有重新加载.
图中的reload是再另外的链接执行php start.php reload,执行以后就重新加载了,但是不是自动加载,每次需要手动,想请教下是什么问题.
配置文件:

'monitor' => [
        'handler'     => process\Monitor::class,
        'reloadable'  => true, // true or false 都不行
        'constructor' => [
            // Monitor these directories
            'monitor_dir' => [
                app_path(),
                config_path(),
                base_path() . '/process',
                base_path() . '/support',
                base_path() . '/resource',
                base_path() . '/.env',
            ],
            // Files with these suffixes will be monitored
            'monitor_extensions' => [
                'php', 'html', 'htm', 'env'
            ]
        ]
    ],
1144 1 0
1个回答

walkor

更新了哪个目录哪个文件?

  • leedom 2022-02-23

    更新了 app/controller/index.php 和 app/queue/redis/

  • walkor 2022-02-23

    在 process/Monitor.php 里打下日志看下吧

年代过于久远,无法发表回答
🔝