swoft icon indicating copy to clipboard operation
swoft copied to clipboard

docker运行 不能在容器里面进行reload

Open lidaiwang opened this issue 4 years ago • 2 comments

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

lidaiwang avatar Mar 24 '20 03:03 lidaiwang

看看这篇文章 https://blog.csdn.net/qq_33028267/article/details/105156454

nanyounanyounan avatar Jun 03 '20 03:06 nanyounanyounan

看看这篇文章 https://blog.csdn.net/qq_33028267/article/details/105156454

这个方式太慢了,每次修改都要十几秒才能生效。为什么不能保留swoft1.0的方式呢

efans007 avatar Apr 11 '21 03:04 efans007