Skip to content

Commit db079c4

Browse files
committed
minor #9301 No more ambiguity on prod mode (juferchaud, javiereguiluz)
This PR was submitted for the 4.0 branch but it was merged into the 3.4 branch instead (closes #9301). Discussion ---------- No more ambiguity on prod mode Because APP_ENV/SYMFONY_ENV=prod is mandatory when you want to enable the prod environment, it should be explained somewhere, explicitly. Commits ------- 97b296d Minor reword 3d7c3b3 No more ambiguity on prod mode
2 parents 96038ec + 97b296d commit db079c4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

deployment.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,11 @@ If your application uses environment variables instead of these parameters, you
138138
must define those env vars in your production server using the tools provided by
139139
your hosting service.
140140

141+
At the very least you need to define the ``SYMFONY_ENV=prod`` (or
142+
``APP_ENV=prod`` if you're using :doc:`Symfony Flex </setup/flex>`) to run the
143+
application in ``prod`` mode, but depending on your application you may need to
144+
define other env vars too.
145+
141146
C) Install/Update your Vendors
142147
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
143148

0 commit comments

Comments
 (0)