DEV mode ergonomics: display_errors, Xdebug, posix, HTTP redirect keeps the port
All DEV only (environment=DEV); production containers never read any of it and render identical config. - /etc/php.d/99-dev.ini: display_errors=On, opcache.revalidate_freq=0 (error_reporting stays at the prod value: E_DEPRECATED floods wp-cli and PHP 8.5 startup) - XDEBUG=1 installs php-pecl-xdebug3 from the same Remi module stream as the image's PHP and writes 98-xdebug-dev.ini (XDEBUG_MODE, XDEBUG_START, XDEBUG_CLIENT_HOST default host.docker.internal, XDEBUG_CLIENT_PORT default 9003; values validated); failure to install is a DEV failure (non-zero exit) - php-process (posix) installed best effort - create-vhost.sh: with PUBLIC_HTTPS_PORT set (DEV, not 443) the HTTP->HTTPS rewrite keeps the port - README: DEV mode and Xdebug client settings sections 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
e540110a46
commit
2fe13fdab0
5 files changed
+114
-1
No files matched your search
@@ -45,6 +45,9 @@ fi
|
||||
if [[ $environment == 'DEV' ]]; then
|
||||
source /scripts/dev-mode.sh
|
||||
dev_check_phpver "$PHPVER_REQUESTED"
|
||||
dev_write_php_ini
|
||||
dev_install_posix
|
||||
dev_setup_xdebug
|
||||
fi
|
||||
|
||||
# httpd and php-fpm open their logs under /home/$user/logs as root: last
|
||||
|
||||
Reference in new issue
Block a user