8000 minor #11865 Debug container environment variables (javiereguiluz) · symfony/symfony-docs@9a873fb · GitHub
[go: up one dir, main page]

Skip to content

Commit 9a873fb

Browse files
committed
minor #11865 Debug container environment variables (javiereguiluz)
This PR was squashed before being merged into the 4.3 branch (closes #11865). Discussion ---------- Debug container environment variables This replaces #11637 and fixes #11278. Commits ------- f5c0554 Debug container environment variables
2 parents 7332730 + f5c0554 commit 9a873fb

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

configuration.rst

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -445,6 +445,32 @@ In order to define the actual values of env vars, Symfony proposes different
445445
solutions depending if the application is running in production or in your local
446446
development machine.
447447

448+
Independent from the way you set environmnet variables, you may need to run the
449+
``debug:container`` command with the ``--env-vars`` option to verify that they
450+
are defined and have the expected values:
451+
452+
.. code-block:: terminal
453+
454+
$ php bin/console debug:container --env-vars
455+
456+
---------------- ----------------- ---------------------------------------------
457+
Name Default value Real value
458+
---------------- ----------------- ---------------------------------------------
459+
APP_SECRET n/a "471a62e2d601a8952deb186e44186cb3"
460+
FOO "[1, "2.5", 3]" n/a
461+
BAR null n/a
462+
---------------- ----------------- ---------------------------------------------
463+
464+
# you can also filter the list of env vars by name:
465+
$ php bin/console debug:container --env-vars foo
466+
467+
# run this command to show all the details for a specific env var:
468+
$ php bin/console debug:container --env-var=FOO
469+
470+
.. versionadded:: 4.3
471+
472+
The option to debug environment variables was introduced in Symfony 4.3.
473+
448474
.. _configuration-env-var-in-dev:
449475
.. _config-dot-env:
450476

0 commit comments

Comments
 (0)
0