开发模式下无法自动reload

dsx5ds

问题描述

Ubuntu系统 已su- 登录root ,目录文件权限都为755 root

启动:root@ubuntu01:/www/wwwroot/webman# sudo php start.php start
Workerman[start.php] start in DEBUG mode

修改预设的控制器,正常reload
/www/wwwroot/webman/app/controller/IndexController.php updated and reload

修改自定义中间件或者config都无法reload
/www/wwwroot/webman/app/middleware/SafeMiddleware.php updated but cannot be reloaded because only auto-loaded files support reload.
/www/wwwroot/webman/config/route.php updated but cannot be reloaded because only auto-loaded files support reload.
process配置正常

'monitorDir' => array_merge([
                app_path(),
                config_path(),
                base_path() . '/process',
                base_path() . '/support',
                base_path() . '/resource',
                base_path() . '/.env',
            ], glob(base_path() . '/plugin/*/app'), glob(base_path() . '/plugin/*/config'), glob(base_path() . '/plugin/*/api')),
            // Files with these suffixes will be monitored

报错信息

/www/wwwroot/webman/app/controller/IndexController.php updated and reload
Workerman[start.php] reloading

/www/wwwroot/webman/app/middleware/SafeMiddleware.php updated but cannot be reloaded because only auto-loaded files support reload
/www/wwwroot/webman/config/route.php updated but cannot be reloaded because only auto-loaded files support reload
309 1 0
1个回答

walkor 打赏
  • 暂无评论
×
🔝