From 2acbb5d167388d8e8939db40dd71d3e9af5d4589 Mon Sep 17 00:00:00 2001 From: walkor Date: Mon, 12 Dec 2022 16:24:08 +0800 Subject: [PATCH] Update process.php --- config/process.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/config/process.php b/config/process.php index f2c83b8..f22f488 100644 --- a/config/process.php +++ b/config/process.php @@ -12,6 +12,7 @@ * @license http://www.opensource.org/licenses/mit-license.php MIT License */ +use Workerman\Worker; return [ // File update detection and automatic reload @@ -27,10 +28,14 @@ base_path() . '/support', base_path() . '/resource', base_path() . '/.env', - ], glob(base_path() . '/plugin/*/app'), glob(base_path() . '/plugin/*/config')), + ], glob(base_path() . '/plugin/*/app'), glob(base_path() . '/plugin/*/config'), glob(base_path() . '/plugin/*/api')), // Files with these suffixes will be monitored 'monitor_extensions' => [ 'php', 'html', 'htm', 'env' + ], + 'options' => [ + 'enable_file_monitor' => !Worker::$daemonize && DIRECTORY_SEPARATOR === '/', + 'enable_memory_monitor' => DIRECTORY_SEPARATOR === '/', ] ] ]