因为swoole是常驻内存,每次更新代码需要重启服务
1.安装file-watcher组件
composer require easyswoole/file-watcher

2.添加热重载代码

3.重启服务,然后修改App文件下的index文件的test方法

文件修改:

日志文件查看

网站访问

官方文档:http://www.easyswoole.com/Components/fileWatcher.html
因为swoole是常驻内存,每次更新代码需要重启服务
1.安装file-watcher组件
composer require easyswoole/file-watcher
2.添加热重载代码
3.重启服务,然后修改App文件下的index文件的test方法
文件修改:
日志文件查看
网站访问
官方文档:http://www.easyswoole.com/Components/fileWatcher.html
本文标题:easyswoole热重载
本文链接:https://www.haomeiwen.com/subject/gjnzlrtx.html
网友评论