I set the variables in the .env as follow:
_APP_LOGGING_PROVIDER=sentry
_APP_LOGGING_CONFIG=FIRST;SECOND
Then I recreated the container with docker compose up -d --force-recreate
but the variable for _APP_LOGGING_PROVIDER is not set. The one for _APP_LOGGING_CONFIG is set correctly.
docker compose exec appwrite vars | grep LOGGING
gives me:
- _APP_LOGGING_PROVIDER=
- _APP_LOGGING_CONFIG=FIRST;SECOND
I tried already:
- reboot
- rebuild the container
Any ideas how to get the env set correctly?
TL;DR
Environment variable for Sentry isn't being set despite .env file being correct. After recreating container, _APP_LOGGING_PROVIDER remains empty while _APP_LOGGING_CONFIG is correct. Tried rebooting and rebuilding container. Solution: Check if environment variable is being unset or overwritten elsewhere in the code.