Skip to content

Commit 582e939

Browse files
authored
Merge pull request #1 from mertingen/mertingen-dotenv-dump-command
Update configuration.rst
2 parents f12fac8 + 9a99e19 commit 582e939

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

configuration.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -772,13 +772,13 @@ In production, the ``.env`` files are also parsed and loaded on each request. So
772772
the easiest way to define env vars is by deploying a ``.env.local`` file to your
773773
production server(s) with your production values.
774774

775-
To improve performance, you can optionally run the ``dump-env`` command (available
775+
To improve performance, you can optionally run the ``dotenv:dump`` command (available
776776
in :ref:`Symfony Flex <symfony-flex>` 1.2 or later):
777777

778778
.. code-block:: terminal
779779
780780
# parses ALL .env files and dumps their final values to .env.local.php
781-
$ composer dump-env prod
781+
$ php bin/console dotenv:dump prod
782782
783783
After running this command, Symfony will load the ``.env.local.php`` file to
784784
get the environment variables and will not spend time parsing the ``.env`` files.

0 commit comments

Comments
 (0)