Skip to content

Commit 70918c2

Browse files
committed
minor #11858 [Configuration] Better explain how to select the active environment (javiereguiluz)
This PR was merged into the 4.2 branch. Discussion ---------- [Configuration] Better explain how to select the active environment Fixes #11851. @ro0NL what do you think? Thanks. Commits ------- d6e357b [Configuration] Better explain how to select the active environment
2 parents 169407c + d6e357b commit 70918c2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

configuration.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -305,13 +305,13 @@ Symfony applications come with a file called ``.env`` located at the project
305305
root directory. This file is used to define the value of environment variables
306306
and it's explained in detail :ref:`later in this article <config-dot-env>`.
307307

308-
Open the ``.env`` file and edit the value of the ``APP_ENV`` variable to change
309-
the environment in which the application runs. For example, to run the
310-
application in production:
308+
Open the ``.env`` file (or better, the ``.env.local`` file if you define one)
309+
and edit the value of the ``APP_ENV`` variable to change the environment in
310+
which the application runs. For example, to run the application in production:
311311

312312
.. code-block:: bash
313313
314-
# .env
314+
# .env (or .env.local)
315315
APP_ENV=prod
316316
317317
This value is used both for the web and for the console commands. However, you

0 commit comments

Comments
 (0)