Hyperf 如何热更新

in PHP with 0 comment

Hyperf 热更新

什么是热更新,当编写代码或者更新项目相关文件又或者目录时,项目会进行重启,然后加载最新代码

watch

我之前一直用的是 watch,参考Github项目 https://github.com/ha-ni-cc/hyperf-watch

优势在于直接放在项目根目录下,然后运行 php watch 即可

推荐使用

地址:https://github.com/hyperf/watcher

安装:php bin/hyperf.php vendor:publish hyperf/watcher

运行:php bin/hyperf.php server:watch

参考文档:https://hyperf.wiki/3.1/#/zh-cn/watcher

Responses