定制 iqomp/watcher 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

iqomp/watcher

最新稳定版本:1.1.3

Composer 安装命令:

composer require iqomp/watcher

包简介

A composer plugin to run cli script when it detect some file changes

README 文档

README

A composer plugin to run cli script when it detect some file changes on working directory. This plugin really help on developing some application with self server like swoole where you need to restart the server on every file update.

Installation

composer require iqomp/watcher --dev

Usage

This module add new composer command named watch that will watch for file changes on current directory recursively, and run the provided argument as a script.

composer watch "php index.php start" --ignore="runtime" --ignore="cache"

Above script will run php index.php start on the first run, and watch for file changes in current directory while ignoring directory runtime and cache relative to current directory. When file changes found, the previous script process get killed and new process is executed.

统计信息

  • 总下载量: 2.92k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-12-14