Worker mode (without docker) not working using Symfony ? #1781
-
|
Hi I try to use FrankenPHP on a Symfony application (fresh new with the runtime): For information, when I run the normal server, this work fine ✅ But when I try to use the worker mode, I got some 404 that are not from Symfony 🤔 What I'm doing wrong? Is it a bug? To reproduce it, I'm on the latest version (using nix with devenv) You can try by yourself using my repo: https://github.com/mykiwi/sandbox-frankenphp |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
Did adding |
Beta Was this translation helpful? Give feedback.
-
|
Yeah root should be the public path when just using frankenphp php-server If you need more fine-grained configuration I suggest using a https://frankenphp.dev/docs/config/#caddyfile-config and doing |
Beta Was this translation helpful? Give feedback.
Yeah root should be the public path when just using
php-server, since index.php is the default fallback, something like (haven't tried):frankenphp php-server
--root application/public
--worker application/public/index.php,4
--listen 0.0.0.0:8000
--debug
If you need more fine-grained configuration I suggest using a https://frankenphp.dev/docs/config/#caddyfile-config and doing
frankenphp run -c ./Caddyfile