Replies: 2 comments
-
Beta Was this translation helpful? Give feedback.
-
There's a few things here:
|
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
There's a few things here:
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Description:
When trying to set the WordPress environment type via the
WORDPRESS_CONFIG_EXTRA
environment variable indocker-compose.yml
, the constantWP_ENVIRONMENT_TYPE
is not defined at runtime if a volume with a local./wpdata
directory is used. Checking via a PHP file shows that the constant is not set.I am unable to create Application Passwords for local development. The WordPress admin interface does not allow generating Application Passwords when running in this environment, which makes it difficult to test integrations and API access locally.
Minimal docker-compose.yml (sanitized):
Steps to reproduce:
./wpdata
directory (can be empty or contain WordPress files).env-check.php
in./wpdata
with the following content:WP_ENVIRONMENT_TYPE: not defined
.Expected behavior:
When setting the
WORDPRESS_CONFIG_EXTRA
environment variable with adefine
, the constant should be defined at runtime, even if a local volume is mounted.Versions:
wordpress:latest
Additional information:
docker exec wordpress_app printenv WORDPRESS_CONFIG_EXTRA
).Beta Was this translation helpful? Give feedback.
All reactions