Replies: 2 comments
0 replies
|
There's a few things here:
|
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

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).All reactions