自己撸一个框架,需要监控代码变化

安装fswatch

brew install fswatch
#!/bin/sh
  do
        ps -ef | grep php | grep -v grep | awk '{print $2}' | xargs kill -9
        php /Users/x/www/php/LightMoon/examples/index.php
  done

监控文件变化目录

fswatch -0 /Users/x/www/php/LightMoon| xargs -0 -n 1 /Users/x/www/php/LightMoon/bin/reload.sh

相关文章:

  • 2022-12-23
  • 2022-01-20
  • 2021-10-20
  • 2022-12-23
  • 2022-12-23
  • 2021-12-01
  • 2022-01-26
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-09-28
  • 2022-02-17
  • 2021-08-03
  • 2021-08-27
相关资源
相似解决方案