title | issue |
---|---|
Add option to dump env vars to env.local.php file |
NEXT-21580 |
- Added
dotenv:dump
command to the container. - Added
--dump-env
option tosystem:setup
command, to allow dumping env vars toenv.local.php
file.
You can now dump the env vars to a optimized env.local.php
file by running bin/console system:setup --dump-env
or bin/console dotenv:dump --env {APP_ENV}
command.
For more information on the env.local.php
file, see the symfony docs.