webman 使用 GatewayWorker的時(shí)候 文件監(jiān)控 監(jiān)控不到GatewayWorker 的文件,改哪里可以監(jiān)控它
webman的 Monitor 這個(gè) 怎么改 監(jiān)控到webman webman/plugin/webman/gateway 這個(gè)目錄
webman的 Monitor 這個(gè) 怎么改 監(jiān)控到webman webman/plugin/webman/gateway 這個(gè)目錄
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'
]
]
]
];
你是想做平滑重啟是這樣嗎?
可以參考http://wtbis.cn/doc/workerman/faq/reload-principle.html