Something that I’ve noticed ever since I started using Trellis is that for a few seconds after deploying, while PHP-FPM is reloading, users get an error message if they try to access the site. It comes out like this in the log:
I could only find a single thread on here about this phenomenon:
So my question and the reason for creating this thread is: How do you handle these 5-6 seconds where the site will return an error message to the user?
Have you changed the setting like the OP in the above thread? If so, have you noticed any disadvantages?
Did you change something else?
Are you enduring it?
I actually tested that on my Staging server before creating the thread, and it does seem to work. Is there a reason why this isn’t the default? This behavior of there being 5 seconds of downtime on deploy has been an issue on all our sites.
Here’s how to reproduce the bug if you want to try it:
Deploy staging
The moment it’s done, go on your site and refresh repeatedly. Odds are that you’ll be met with an error
Assuming there are no downsides to this, do you want me to do a PR?
Are you attempting this on a vanilla Bedrock install with no changes? I’ve never hit this issue before, and have visited sites immediately after deploys without problems many times since the creation of Trellis
I’ve had the issue on two separate websites:
One using Bedrock with minimal changes.
One using Radicle with no changes
Both sites have this issue. Maybe not every time, but often enough that almost every deploy on a website with 150k monthly visitors will show an error in the log.