File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff 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\C omponent\D otenv\C ommand\D otenvDumpCommand: ~
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
You can’t perform that action at this time.
0 commit comments