Skip to content

Commit 28d6b6b

Browse files
authored
[Dotenv] Document internal dump-env command
Close #15878
1 parent dc9a534 commit 28d6b6b

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

deployment.rst

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,21 @@ most natural in your hosting environment.
166166
167167
$ composer dump-env prod --empty
168168
169+
Sometimes ``composer`` may not be installed on your hosting environment. Thus you
170+
have to install and package Composer related code logic way before deploying.
171+
Another way to generate this optimized file is to manually register the built in
172+
command `Symfony\\Component\\Dotenv\\Command\\DotenvDumpCommand`
173+
and use it:
174+
175+
.. code-block:: yaml
176+
177+
services:
178+
Symfony\Component\Dotenv\Command\DotenvDumpCommand: ~
179+
180+
.. code-block:: terminal
181+
182+
$ APP_ENV=prod APP_DEBUG=0 php bin/console dotenv:dump
183+
169184
C) Install/Update your Vendors
170185
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
171186

0 commit comments

Comments
 (0)