Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why does Envoyer need to restart PHP FPM when deploying?

Tags:

php

laravel

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

like image 696
Vijayanand Premnath Avatar asked May 19 '16 09:05

Vijayanand Premnath


People also ask

Do I need to restart PHP-FPM?

PHP-FPM you need to restart to avoid configuration inconsistency.

How do I restart the PHP-FPM +command line?

Log into WHM as root. Search “PHP-FPM” and select PHP-FPM service for Apache. Select Yes to restart the PHP-FPM service.

What is Envoyer laravel?

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.


1 Answers

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.

like image 118
Reena Avatar answered Oct 03 '22 10:10

Reena