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_EXTRAenvironment variable indocker-compose.yml, the constantWP_ENVIRONMENT_TYPEis not defined at runtime if a volume with a local./wpdatadirectory 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:
./wpdatadirectory (can be empty or contain WordPress files).env-check.phpin./wpdatawith the following content:WP_ENVIRONMENT_TYPE: not defined.Expected behavior:
When setting the
WORDPRESS_CONFIG_EXTRAenvironment variable with adefine, the constant should be defined at runtime, even if a local volume is mounted.Versions:
wordpress:latestAdditional information:
docker exec wordpress_app printenv WORDPRESS_CONFIG_EXTRA).Beta Was this translation helpful? Give feedback.
All reactions