Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

配合hyperf使用提示 swoole_signalfd_event_callback #605

Open
taobali32 opened this issue Apr 26, 2024 · 4 comments
Open

配合hyperf使用提示 swoole_signalfd_event_callback #605

taobali32 opened this issue Apr 26, 2024 · 4 comments

Comments

@taobali32
Copy link

taobali32 commented Apr 26, 2024

运行命令

php bin/hyperf.php server:watch
// 然后修改代码 触发热更新

image

php-v

image

php -m

image

php --ri swoole

image

我是使用自定义编译的php,因为swoole-cli里面没有ssh2扩展,但是我的项目里面有用到ssh2.
另外 ctrl+c 因为信号问题 程序不能正常终止掉

@jingjingxyk
Copy link
Contributor

你用 main 分支构建啊,构建时添加 +ssh2 , 构建出来的swoole-cli 就包含了 ssh2 扩展

php prepare.php +ssh2 

@taobali32
Copy link
Author

你用 main 分支构建啊,构建时添加 +ssh2 , 构建出来的swoole-cli 就包含了 ssh2 扩展

php prepare.php +ssh2 

重新使用swoole-cli main分支 在运行hyperf的时候依旧 有警告, 代码改变后 程序不会 触发热更新
image

@jingjingxyk
Copy link
Contributor

jingjingxyk commented Apr 27, 2024

热更新我暂时不知道怎么实现的。 我看了一下这个

https://hyperf.wiki/3.1/#/zh-cn/watcher

https://hyperf.wiki/3.1/#/zh-cn/async-queue?id=%e5%ae%89%e5%85%a8%e5%85%b3%e9%97%ad

@taobali32
Copy link
Author

热更新我暂时不知道怎么实现的。 我看了一下这个

https://hyperf.wiki/3.1/#/zh-cn/watcher

https://hyperf.wiki/3.1/#/zh-cn/async-queue?id=%e5%ae%89%e5%85%a8%e5%85%b3%e9%97%ad

https://hyperf.wiki/3.1/#/zh-cn/watcher
暂时 Alpine Docker 环境下,稍微有点问题,后续会完善。 在时 Alpine Docker 环境下打包的。。 所以好像无解

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants