Skip to content

Commit

Permalink
Update process.php
Browse files Browse the repository at this point in the history
  • Loading branch information
walkor authored Dec 12, 2022
1 parent d98460b commit 2acbb5d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion config/process.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 === '/',
]
]
]
Expand Down

0 comments on commit 2acbb5d

Please sign in to comment.