swoft
swoft copied to clipboard
docker运行 不能在容器里面进行reload
vendor/swoft/server/src/Server.php 在990行左右 这句代码 return $masterPID > 1 && Process::kill($masterPID, 0);
当我们用docker运行时 ,/var/www/swoft/runtime/swoft.pid 里面就是1,8 $masterPID等于1。 不大于1 不能进行reload 报错 The HTTP server is not running! cannot reload
看看这篇文章 https://blog.csdn.net/qq_33028267/article/details/105156454
看看这篇文章 https://blog.csdn.net/qq_33028267/article/details/105156454
这个方式太慢了,每次修改都要十几秒才能生效。为什么不能保留swoft1.0的方式呢