部署时,为什么Envoyer需要重新启动PHP FPM? [英] Why does Envoyer need to restart PHP FPM when deploying?

查看:69
本文介绍了部署时,为什么Envoyer需要重新启动PHP FPM?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Envoyer,有人可以解释一下为什么在部署时为什么需要重新启动PHP FPM.

I am using Envoyer and can any one explain me why do we need to restart PHP FPM when deploying.

推荐答案

这是因为您的新部署是在与php当前提供服务的目录不同的目录中创建的.该发行版与nginx配置中指定的目录符号链接.

It's because your new deployment is created in a different directory to the one currently being served by php. The release is symlinked from the directory specified in the nginx config.

要使php加载新的部署,必须重新启动它,以便它遵循项目文件夹中更新的符号链接.

In order for php to load the new deployment it must be restarted so it follows the updated symlink in your project folder.

这篇关于部署时,为什么Envoyer需要重新启动PHP FPM?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆