Fix: variables_order=EGPCS für $_ENV Support

Bedrock braucht $_ENV für env() Funktion

🤖 Generated with Claude Code
This commit is contained in:
2025-12-17 14:20:18 +01:00
parent 6561d9821a
commit b69d90d842
3 changed files with 6 additions and 0 deletions

View File

@@ -18,6 +18,9 @@ RUN install-php-extensions mysqli pdo_mysql \
&& curl -o /usr/local/bin/wp https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar \ && curl -o /usr/local/bin/wp https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar \
&& chmod +x /usr/local/bin/wp && chmod +x /usr/local/bin/wp
# PHP config für Bedrock (variables_order mit E für $_ENV)
COPY php-custom.ini /usr/local/etc/php/conf.d/99-bedrock.ini
# Startup-Script in /etc/entrypoint.d/ (serversideup Standard) # Startup-Script in /etc/entrypoint.d/ (serversideup Standard)
COPY --chmod=755 entrypoint.d/ /etc/entrypoint.d/ COPY --chmod=755 entrypoint.d/ /etc/entrypoint.d/

View File

@@ -12,6 +12,7 @@ services:
- "traefik.http.services.wordpress.loadbalancer.server.port=8080" - "traefik.http.services.wordpress.loadbalancer.server.port=8080"
environment: environment:
NGINX_WEBROOT: /var/www/html/web NGINX_WEBROOT: /var/www/html/web
PHP_INI_VARIABLES_ORDER: EGPCS
WP_ENV: production WP_ENV: production
WP_HOME: https://kurse.islandpferde-melanieworbs.de WP_HOME: https://kurse.islandpferde-melanieworbs.de
WP_SITEURL: https://kurse.islandpferde-melanieworbs.de/wp WP_SITEURL: https://kurse.islandpferde-melanieworbs.de/wp

2
php-custom.ini Normal file
View File

@@ -0,0 +1,2 @@
; WordPress Bedrock - Custom PHP settings
variables_order = "EGPCS"