Skip to content

Commit db5b194

Browse files
committed
Merge branch '6.0' into 6.1
* 6.0: [Dotenv] Document internal dump-env command
2 parents e4ec1b0 + 4da7162 commit db5b194

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

deployment.rst

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,20 @@ most natural in your hosting environment.
166166
167167
$ composer dump-env prod --empty
168168
169+
If ``composer`` is not installed on your server, you can generate this optimized
170+
file with a command provided by Symfony itself, which you must register in
171+
your application before using it:
172+
173+
.. code-block:: yaml
174+
175+
# config/services.yaml
176+
services:
177+
Symfony\Component\Dotenv\Command\DotenvDumpCommand: ~
178+
179+
.. code-block:: terminal
180+
181+
$ APP_ENV=prod APP_DEBUG=0 php bin/console dotenv:dump
182+
169183
C) Install/Update your Vendors
170184
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
171185

0 commit comments

Comments
 (0)