-
Hello Is there anything to do after changing parameters? Here console about. I know version is old but I got hands on this today. Symfony Version 3.4.2 |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 2 replies
-
From your issue description I understand that you don't use env variable for your password but you have it hardcoded inside parameters.yaml. I also suspect that you are talking about the production environment. In this case you have to rebuild the container (probably with |
Beta Was this translation helpful? Give feedback.
-
Hello
thanks.
Are you talking about the commend described here?
https://symfony.com/doc/3.3/console/usage.html
php bin/console cache:clear --env=prod
Is there a way/command to revert to the previous environment configuration?
I'm a bit afraid that command refreshes settings I do not know where they
are taken from, that will break production site.
Thanks
Il giorno sab 20 mag 2023 alle ore 20:35 javaDeveloperKid <
***@***.***> ha scritto:
… From you issue description I understand that you don't use env variable
for your password but you have it hardcoded inside parameters.yaml. I also
suspect that you are talking about the production environment. In this case
you have to rebuild the container (probably with cache:clear --env prod)
—
Reply to this email directly, view it on GitHub
<#50374 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABQXVBUXT37YSJNHAWQZOELXHEFGPANCNFSM6AAAAAAYI2ANUE>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
A server reeboot can refresh settings from parameters.yml like php bin/console cache:clear --env=prod |
Beta Was this translation helpful? Give feedback.
-
Thanks and sorry for my late reply. php bin/console cache:clear --env=prod Thanks |
Beta Was this translation helpful? Give feedback.
The cache is a thing that is autogenerated. Nobody should modify this by hand. So every cache after rebuild is based on the current configuration e.g. in yaml files.
If you are very scared you can backup the cache directory and replace it if something goes wrong. You can also copy the project root somewhere else, execute
cache:clear
and check it every thing works. If yes then execute cache:clear inside the primary project root.