swooletw / laravel-swoole

High performance HTTP server based on Swoole. Speed up your Laravel or Lumen applications.
MIT License
4.04k stars 390 forks source link

watcher.js hot reload is error #413

Closed szwss closed 3 years ago

szwss commented 4 years ago

| PHP Version | 7.4.5 | | Swoole Version | 4.5.1 | | Laravel Version | 5.8.38 | | Listen IP | workspace | | Listen Port | 1215 | | Server Status | Online | | Reactor Num | 6 | | Worker Num | 6 | | Task Worker Num | 0 | | Websocket Mode | Off | | Master PID | 1276 | | Manager PID | 1277 | | Log Path | /var/www/dazhehui/storage/logs/swoole_http.log

run node watcher.js

PID 1276,1277 is not alive.

szwss commented 4 years ago

I use laradock, I use the built-in SWOOLE_HOT_RELOAD_ENABLE = true Hot update is invalid I only update the code immediately if worker_num = 1, max_request = 1 I want to use a better solution today, watcher.js, but I also get an error and cannot be used

Arkanius commented 4 years ago

@szwss try to check this: https://github.com/swooletw/laravel-swoole/issues/418

szwss commented 4 years ago

@Arkanius thank you very mach