cache:clear
not working in PROD after renaming a variable in .env
#59279
Labels
cache:clear
not working in PROD after renaming a variable in .env
#59279
Symfony version(s) affected
7.2.1
Description
In Symfony 7.1, I had a variable named
MAILER_DSN
in my.env
.I now renamed it to
FOO_MAILER_DSN
and upgraded to Symfony 7.2. This worked fine on my DEV machine.When deploying to PROD, I did (as recommended at https://symfony.com/doc/current/deployment.html#d-clear-your-symfony-cache)
And got:
So I deleted the cache folder manually:
rm -rf var/cache/prod/*
And then everything was fine:
Gave me the expected:
How to reproduce
See above
Possible Solution
I already suggested to mention the manual way (
rm ...
) on the deployment page: symfony/symfony-docs#19836So this is now the second issue with
cache:clear
I'm running into while deploying.Additional Context
No response
The text was updated successfully, but these errors were encountered: