Skip to content
/ watch Public

Monitor file changes and automatically restart processes

License

Notifications You must be signed in to change notification settings

imlinfly/watch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

监控文件变化并自动重启进程

使用说明

bash-5.1# php watch.php  --help
Usage: watch.php [ARG...]

Command Options:
  -i, --include  包含路径,多个路径用“,”分隔
  -e, --exclude  排除的路径,多个路径用“,”分隔
  -t, --interval 监视文件间隔时间(秒)
  -c, --cmd      程序启动命令
  -s, --signal   发送给子进程的信号。默认值为9,即SIGKILL

Global Options:
  -h, --help     Print usage
  -v, --version  Print version information

Run 'watch.php --help' for more information on a command.

Developed with Mix PHP framework. (openmix.org/mix-php)

使用示例

php watch.php \
  --include="./" \
  --exclude="/.idea/,/vendor/,/runtime/,*.log" \
  --cmd="php ./bin/swoole.php"

License

Apache-2.0

About

Monitor file changes and automatically restart processes

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages