Uh oh!
There was an error while loading. Please reload this page.
print warning message when php-server is called without root, update docs - #1571
print warning message when php-server is called without root, update docs#1571henderkes wants to merge 0 commit into
Conversation
dunglas
commented
May 16, 2025
It's only when you use the embedding mechanism, not the Caddyfile directive. It's intended for me because most embedded apps need to store files outside the document root (as Symfony, Laravel, etc do, the only exception is WordPress). |
henderkes
commented
May 16, 2025
It also affects the Caddyfile in the embedded app, though, which was what led to my surprise when testing the cwd fix. I've added another sentence to make it clear in the embed.go docs for the Caddyfile mention too. |
dunglas
commented
May 16, 2025
Hum, we shouldn't do that if their is a Caddyfile, indeed. |
dunglas
commented
May 16, 2025
The root isn't changed if there is a |
henderkes
commented
May 16, 2025
In my opinion we shouldn't do it at all, even if it's a BC break. Having Just have users specify |
dunglas
commented
May 16, 2025
The embedding case is a bit special: we want the app to be fully functional without requiring custom CLI arguments. |
Then we'll have to leave it as it is and just add as much documentation as possible. I think the way the PR does it is the best we can do without breaking anything. At a later point I think we should juggle the documentation with a specific page just for all the extra cli commands that we add to caddy. |
henderkes
commented
May 17, 2025
Oh, I didn't see this reply earlier. I'll have to figure out what causes the root to bet set to public even though there's a Caddyfile. |
because I feel like even with the best documentation, that's very strange behaviour