DOCROOT_SUBDIR only in DEV mode; XDEBUG_START defaults to trigger
Review follow-up (PR #61 review 121): - create-vhost.sh ignores DOCROOT_SUBDIR (log line) unless environment=DEV, and entrypoint.sh only creates the folder in DEV. Defence in depth so a production container cannot move its web root through the env, even if a site owner got the variable into the container (WHP also denies it now). - dev-mode.sh: XDEBUG_START defaults to trigger instead of yes, so CLI runs (wp-cli) do not print "Could not connect to debugging client" without an IDE. XDEBUG_START=yes still connects on every request. - README/CLAUDE.md updated. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0185ukXi4YX5FxJGqhi6qab6
This commit is contained in:
1 parent
64ebfa6c3b
commit
bbbae62d0b
5 files changed
+20
-9
No files matched your search
@@ -74,7 +74,7 @@ docker run -d -p 80:80 -p 443:443 \
|
||||
- `domain` (required): Primary domain for Apache vhost
|
||||
- `serveralias`: Additional domains (comma-separated)
|
||||
- `PHPVER`: informational only (the image tag selects PHP)
|
||||
- `DOCROOT_SUBDIR`: serve `public_html/<subdir>` (Laravel/CI4 `public`); validated like WHP's docrootsub; default empty = unchanged
|
||||
- `DOCROOT_SUBDIR`: serve `public_html/<subdir>` (Laravel/CI4 `public`); validated like WHP's docrootsub; default empty = unchanged; honoured only when `environment=DEV` (ignored with a log line otherwise, so a production site cannot move its web root through it)
|
||||
- `XDEBUG=1`, `PUBLIC_HTTPS_PORT`: DEV mode only
|
||||
- `environment`: DEV or PROD mode
|
||||
|
||||
|
||||
Reference in new issue
Block a user