Skip to content

Commit

Permalink
Daemon mode does not monitor file updates
Browse files Browse the repository at this point in the history
  • Loading branch information
walkor authored Jul 30, 2023
1 parent 57e98ad commit 675b616
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config/process.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
* @license http://www.opensource.org/licenses/mit-license.php MIT License
*/

use Workerman\Worker;
global $argv;

return [
// File update detection and automatic reload
Expand All @@ -34,7 +34,7 @@
'php', 'html', 'htm', 'env'
],
'options' => [
'enable_file_monitor' => !Worker::$daemonize && DIRECTORY_SEPARATOR === '/',
'enable_file_monitor' => !in_array('-d', $argv) && DIRECTORY_SEPARATOR === '/',
'enable_memory_monitor' => DIRECTORY_SEPARATOR === '/',
]
]
Expand Down

0 comments on commit 675b616

Please sign in to comment.