watcher.php 783 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. declare(strict_types=1);
  3. /**
  4. * This file is part of Hyperf.
  5. *
  6. * @link https://www.hyperf.io
  7. * @document https://hyperf.wiki
  8. * @contact group@hyperf.io
  9. * @license https://github.com/hyperf/hyperf/blob/master/LICENSE
  10. */
  11. /**
  12. * 驱动类型
  13. * \Hyperf\Watcher\Driver\ScanFileDriver 无需扩展
  14. * \Hyperf\Watcher\Driver\FswatchDriver 需要安装 fswatch
  15. * \Hyperf\Watcher\Driver\FindDriver 需要安装 find,MAC 下需要安装 gfind
  16. * \Hyperf\Watcher\Driver\FindNewerDriver 需要安装 find
  17. */
  18. return [
  19. 'driver' => \Hyperf\Watcher\Driver\ScanFileDriver::class,
  20. 'bin' => 'php -d swoole.use_shortname=Off',
  21. 'watch' => [
  22. 'dir' => ['app', 'config', 'Modules'],
  23. 'file' => ['.env'],
  24. 'scan_interval' => 2000,
  25. ],
  26. ];