Skip to content

Commit 8e072da

Browse files
Mentioned APP_ENV for Flex apps
1 parent 0eee3f1 commit 8e072da

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

deployment.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,8 +156,9 @@ as you normally do:
156156
.. caution::
157157

158158
If you get a "class not found" error during this step, you may need to
159-
run ``export APP_ENV=prod`` before running this command so that
160-
the ``post-install-cmd`` scripts run in the ``prod`` environment.
159+
  run ``export SYMFONY_ENV=prod`` (or ``export APP_ENV=prod`` if you're
160+
  using :doc:`Symfony Flex </setup/flex>`) before running this command so
161+
that the ``post-install-cmd`` scripts run in the ``prod`` environment.
161162

162163
D) Clear your Symfony Cache
163164
~~~~~~~~~~~~~~~~~~~~~~~~~~~

0 commit comments

Comments
 (0)