Passing WP_ENVIRONMENT_TYPE not working #871
ashishjullia
started this conversation in
General
Replies: 2 comments 1 reply
-
I have the exact same problem. Unable to set WP_ENVIRONMENT_TYPE to "staging". Is there any workaround? |
Beta Was this translation helpful? Give feedback.
0 replies
-
You have to use ’WORDPRESS_CONFIG_EXTRA’ for this. Here's an example: https://devtidbits.com/2019/11/02/customise-wordpress-on-docker/#wordpress-configurations--wp-configphp |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I used the following
docker-compose.yml
:But still getting this:
![image](https://private-user-images.githubusercontent.com/11252951/288579688-ffa4db29-537f-468d-a2b0-47e8c8a0630d.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ3MDA5NDksIm5iZiI6MTcyNDcwMDY0OSwicGF0aCI6Ii8xMTI1Mjk1MS8yODg1Nzk2ODgtZmZhNGRiMjktNTM3Zi00NjhkLWEyYjAtNDdlOGM4YTA2MzBkLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MjYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODI2VDE5MzA0OVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTk0NjgwNzc0Yjc4YzlhYmYyZjAyYTQ2YTQxN2FlNDljMzRmYjdjODY3N2FhOTRmMjhhMDQ0NmY2MWYxZWUxYTcmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.meiQbnwGtMFwu_RIT0_akA0yWfdIfBsCdnSFI5vGtww)
I looked here for the reference:
Also, I removed the volumes and then used new ones but the issue same issue. I even tried using
staging
, still same.Am I missing something here?
Beta Was this translation helpful? Give feedback.
All reactions