8000 Added note about exporting SYMFONY_ENV · symfony/symfony-docs@15ce0fe · GitHub
[go: up one dir, main page]

Skip to content

Commit 15ce0fe

Browse files
committed
Added note about exporting SYMFONY_ENV
1 parent e9d317a commit 15ce0fe

File tree

1 file ch 8000 anged

+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
@@ -106,6 +106,12 @@ as you normally do:
106106
ensures that development packages are not installed in the production
107107
environment.
108108

109+
.. caution::
110+
111+
If you get a "class not found" error during this step, you may need to
112+
run ``export SYMFONY_ENV=prod`` before running this command so that
113+
the ``post-install-cmd`` scripts run in the ``prod`` environment.
114+
109115
D) Clear your Symfony Cache
110116
~~~~~~~~~~~~~~~~~~~~~~~~~~~
111117

0 commit comments

Comments
 (0)
0