-
Notifications
You must be signed in to change notification settings - Fork 425
print warning message when php-server is called without root, update docs #1571
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
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). |
|
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. |
|
Hum, we shouldn't do that if their is a Caddyfile, indeed. |
|
The root isn't changed if there is a |
|
In my opinion we shouldn't do it at all, even if it's a BC break. Having Just have users specify |
|
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. |
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