8000 feature #4182 Added note about exporting SYMFONY_ENV (jpb0104) · symfony/symfony-docs@de60dbe · GitHub
[go: up one dir, main page]

Skip to content

Commit de60dbe

Browse files
committed
feature #4182 Added note about exporting SYMFONY_ENV (jpb0104)
This PR was merged into the 2.3 branch. Discussion ---------- Added note about exporting SYMFONY_ENV New PR to replace the mess I made in #4001. Sorry about that. I also applied all the suggestions. Commits ------- 15ce0fe Added note about exporting SYMFONY_ENV
2 parents 08639ae + 15ce0fe commit de60dbe

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

cookbook/deployment/tools.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,12 @@ as you normally do:
110110
ensures that development packages are not installed in the production
111111
environment.
112112

113+
.. caution::
114+
115+
If you get a "class not found" error during this step, you may need to
116+
run ``export SYMFONY_ENV=prod`` before running this command so that
117+
the ``post-install-cmd`` scripts run in the ``prod`` environment.
118+
113119
D) Clear your Symfony Cache
114120
~~~~~~~~~~~~~~~~~~~~~~~~~~~
115121

0 commit comments

Comments
 (0)
0