简体   繁体   English

为什么我最近的 Envoyer 部署没有显示?

[英]Why is my recent Envoyer deployment not showing?

I just deployed using Envoyer and there were no errors.我刚刚使用 Envoyer 进行部署,没有错误。 However, I don't see the new version of the site in my browser.但是,我在浏览器中看不到该网站的新版本。

I SFTP'd into the server, and sure enough the new files are there.我 SFTP 进入服务器,果然新文件在那里。

I SSH'd into the current directory and ran php artisan cache:clear but it didn't make a difference;我 SSH 进入current目录并运行php artisan cache:clear但它没有任何区别; I still see the old version of the site.我仍然看到该网站的旧版本。

I've done tons of deployments and never encountered this before.我已经完成了大量部署,以前从未遇到过这种情况。 How do I fix this?我该如何解决?

From the symptoms you've listed, it sounds like OPcache is enabled.从您列出的症状来看,似乎启用了OPcache

Restart PHP with the following command:使用以下命令重新启动PHP

sudo service phpX.X-fpm reload

Where XX is the version of PHP you're using.其中XX是您使用的 PHP 版本。

Just adding here.只是在这里添加。 I ran into the same issue after changing the PHP version on the site inside of Forge.在 Forge 内部的站点上更改 PHP 版本后,我遇到了同样的问题。 My server now has multiple versions of PHP on it.我的服务器上现在有多个版本的 PHP。 I had to go to the site inside of Envoyer, then go to the server, then updated the PHP version to the new PHP version of the site.我必须访问 Envoyer 内部的站点,然后访问服务器,然后将 PHP 版本更新为该站点的新 PHP 版本。 Now, FPM will reload the proper PHP version.现在,FPM 将重新加载正确的 PHP 版本。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM