Replies: 1 comment 1 reply
-
The [file watcher] (#1013) is being worked on, but it will still take some time to complete. For a deployment it probably would make more sense to expose the same reload behavior some other way (maybe via caddy's admin?) |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Lately I've been thinking about a few ways to reload code / clear the OPCache after deploys.
As FrankenPHP and Caddy are tightly coupled, reloading FrankenPHP will drop all active connections to clients.
Looking at Deployer, they used to recommend setting
opcache.validate_timestamps = 1
, but have recently implemented cachetool to clear the OPCache in FPM through a socket after a deploy. Of course this is not available for FrankenPHP.What are your ideas to achieve similar "zero-downtime" deploys for FrankenPHP in worker mode?
I could still add a "reload-frankenphp" script to my containers and live with the short (or sometimes longer) downtime, but is there a better way? Maybe related to #556 (reply in thread)?
Beta Was this translation helpful? Give feedback.
All reactions