From 0eee3f1496cd3f97c70fccf18949861e1752e7c1 Mon Sep 17 00:00:00 2001 From: proArtex Date: Sat, 26 Aug 2017 20:54:00 +0300 Subject: [PATCH 1/2] Update deployment.rst --- deployment.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deployment.rst b/deployment.rst index 8743e109975..5b586d3a763 100644 --- a/deployment.rst +++ b/deployment.rst @@ -156,7 +156,7 @@ as you normally do: .. caution:: If you get a "class not found" error during this step, you may need to - run ``export SYMFONY_ENV=prod`` before running this command so that + run ``export APP_ENV=prod`` before running this command so that the ``post-install-cmd`` scripts run in the ``prod`` environment. D) Clear your Symfony Cache From 8e072da1c5c7bd9c978101cab5ebdecccd4d0215 Mon Sep 17 00:00:00 2001 From: Javier Eguiluz Date: Tue, 28 Nov 2017 10:03:22 +0100 Subject: [PATCH 2/2] Mentioned APP_ENV for Flex apps --- deployment.rst | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/deployment.rst b/deployment.rst index 5b586d3a763..a112c4b19d8 100644 --- a/deployment.rst +++ b/deployment.rst @@ -156,8 +156,9 @@ as you normally do: .. caution:: If you get a "class not found" error during this step, you may need to - run ``export APP_ENV=prod`` before running this command so that - the ``post-install-cmd`` scripts run in the ``prod`` environment. +   run ``export SYMFONY_ENV=prod`` (or ``export APP_ENV=prod`` if you're +   using :doc:`Symfony Flex `) before running this command so + that the ``post-install-cmd`` scripts run in the ``prod`` environment. D) Clear your Symfony Cache ~~~~~~~~~~~~~~~~~~~~~~~~~~~