10000 Merge branch '4.2' into 4.3 · symfony/symfony-docs@cbd36aa · GitHub
[go: up one dir, main page]

Skip to content

Commit cbd36aa

Browse files
committed
Merge branch '4.2' into 4.3
* 4.2: [Configuration] Better explain how to select the active environment
2 parents aaaff36 + dfa984b commit cbd36aa

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 created 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)
0