I am using Envoyer and can any one explain me why do we need to restart PHP FPM when deploying.
PHP-FPM you need to restart to avoid configuration inconsistency.
Log into WHM as root. Search “PHP-FPM” and select PHP-FPM service for Apache. Select Yes to restart the PHP-FPM service.
Laravel Envoyer is a zero downtime deployment service for PHP. Some highlights of Envoyer's features include: GitHub, GitLab & Bitbucket Integration. GitLab Self-Hosted Integration. Seamless Deployment Rollbacks.
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.
In order for php to load the new deployment it must be restarted so it follows the updated symlink in your project folder.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With