Skip to content

Commit 6fc8f4c

Browse files
committed
Fixed some errors in the explanation
1 parent 7c4cd17 commit 6fc8f4c

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

cookbook/configuration/environments.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -223,21 +223,21 @@ debug mode enabled. Use ``--env`` and ``-no-debug`` options to modify this behav
223223
# 'dev' environment and debug enabled
224224
$ php app/console command_name
225225
226-
# 'prod' environment and debug enabled
226+
# 'prod' environment (debug is always disabled for 'prod')
227227
$ php app/console command_name --env=prod
228228
229-
# 'prod' environment and debug disabled
230-
$ php app/console command_name --env=prod --no-debug
229+
# 'test' environment and debug disabled
230+
$ php app/console command_name --env=test --no-debug
231231
232232
In addition to ``--env`` and ``--debug`` options, Symfony commands behavior can
233233
also be controlled with environment variables. The Symfony console application
234234
checks the existence and value of these environment variables before executing
235235
any command:
236236

237237
* ``SYMFONY_ENV``, sets the execution environment of the command to the value of
238-
this variable.
239-
* ``SYMFONY_DEBUG``, if ``true``, debug mode is enabled for the command. If
240-
``false``, debug mode is disabled.
238+
this variable (``dev``, ``prod``, ``test``, etc.)
239+
* ``SYMFONY_DEBUG``, if ``0``, debug mode is disabled. Otherwise, debug mode is
240+
enabled.
241241

242242
These environment variables are very useful for production servers, because they
243243
allow you to ensure that commands are always run on ``prod`` environment without

0 commit comments

Comments
 (0)