2022-07-27

Enabling Wordpress debug mode in docker-compose environment

I'm having problems understanding how to enable wordpress debug mode through docker-compose. image of wp-config.php debug section

define( 'WP_DEBUG', !!getenv_docker('WORDPRESS_DEBUG', '') );

This is the part of the wp-config.php file where I should be able to enable it. The file is read only and it seems to be designed to enable this feature through docker-compose.yaml file but I cant figure out how. I have tried adding WORDPRESS_DEBUG: 'true' to the environment section of wordpress service but it throws error with true/fals data type and 'true' as a string does not seem to work. The only solution I can come up with is to edit the file as superuser.



No comments:

Post a Comment