按照webman手册的宝塔安装,安装好了之后,无法关闭热更新

钱包你快鼓起来

问题描述

config/app.php 的debug => false,
config/process.php monitor下的reloadable=>false
每次更新代码还是会自动热更新,请问有知道是什么环节出现问题了吗
这里写问题描述

php /www/wwwroot/webman/start.php start 启动代码是这个
尝试过 php /www/wwwroot/webman/start.php start --no-reload 热更新依然会生效,无法关闭

140 1 0
1个回答

process.php配置里 monitor.options.enable_file_monitor 控制热更新

  • 钱包你快鼓起来 2天前

    感谢大佬~~~

  • 钱包你快鼓起来 2天前

    这样设置还是会热更新哎,好奇怪,而且看日志,记录Workerman[start.php] start in DEBUG mode
    可是app.php下的明明是 'debug' => false,
    // File update detection and automatic reload
    'monitor' => [
    'handler' => app\process\Monitor::class,
    'reloadable' => false,
    'constructor' => [
    // Monitor these directories
    '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
    'monitorExtensions' => [
    'php', 'html', 'htm', 'env'
    ],
    'options' => [
    'enable_file_monitor' => false,
    'enable_memory_monitor' => DIRECTORY_SEPARATOR === '/',
    ]
    ]
    ]

  • walkor 2天前

    workerman不加-d启动就是 Workerman[start.php] start in DEBUG mode 没问题。
    app.debug是用来控制webman业务出错时是否打印调用栈的。
    热更新问题自己到app/process/Monitor.php里定位下就出来了。

  • 钱包你快鼓起来 2天前

    好的好的~谢谢

×
🔝