Replies: 1 comment 4 replies
-
Update. So this is interesting. If I rename the worker.php script file to index.php and update the worker config in the Caddyfile (see below), everything works. ???Why???
This isn't mentioned in the documentation, which even has worker.php as the name of the script in the examples. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all. I'm new to FrankenPHP but have my own PHP framework that I'm trying to get working with it. I have it working fine in non-worker mode and I'm finding it a lot faster than FPM or others. So now I'm trying to get it working in worker mode and not having much luck.
So what happens is, my worker script runs, starts up and bootstraps my application correctly and I can debug it up to when it executes
frankenphp_handle_request($handler)
, but then that's it. None of my actual requests make it to the handler.The confusing part is that everything "appears" to work because requests are being sent to my standard
index.php
entrypoint.If I remove the
root * /
from the Caddyfile then nothing works and I get 404s.What am I doing wrong here? I've been through the documentation a bunch of times and come up blank, but obviously I've missed a step. I'm hoping someone can shed some light on the issue for me. Thanks.
Caddy file:
Worker script:
Beta Was this translation helpful? Give feedback.
All reactions