如何处理 PHP 和框架的补丁/更新
我们公司目前正在进行大讨论。如何处理 PHP 的更新以及使用的 PHP (Zend Framework)/JavaScript 框架(如 JQuery 和 Dojo)。
你们给每个 php 版本打补丁吗?您是否将每个框架更新部署到生产服务器?我认为测试所有依赖项需要花费大量时间?或者是火&忘记最佳实践?
很想听听您在这个领域的经验!谢谢。
Big discussions in the moment at our company. How to handle updates to PHP and used PHP (Zend Framework) / JavaScript Frameworks like JQuery and Dojo.
Do you patch every php version? do you deploy every Framework update to production servers? I think it takes and huge amount of time to test all depencys? Or is fire & forget best practise?
Would love to hear your expirence in this field! Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
首先,最好有一个具有多个服务器的负载均衡器来处理请求。这样,如果其中一个发生部署问题,您可以将其从平衡器上拉下来并让其他人处理。
关于我是否会更新上述框架或 PHP,问题归结为:
现在就如何处理它而言,我建议如下:
您需要多少个节点取决于您站点的规模。请注意,这是一种更加偏执的更新方法。
First off, it's best to have a load balancer with multiple servers to process requests. That way if a deployment issue happens on one, you can pull it off the balancer and let the others handle it.
In regards to whether or not I would update said framework or PHP, the question comes down to:
Now as far as how to handle it, I'd recommend the following:
How many nodes you need will depend on the scale of your site. Please note that this is somewhat of a more paranoid method for updates.