8000 Documented the console environment variables by javiereguiluz · Pull Request #4665 · symfony/symfony-docs · GitHub
[go: up one dir, main page]

Skip to content

Documented the console environment variables #4665

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Dec 22, 2014
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Rewordings and transformed a list into a definition list
  • Loading branch information
javiereguiluz committed Dec 17, 2014
commit 2fb082d751190d6f6ccbef9942f319549f2958ed
19 changes: 10 additions & 9 deletions cookbook/configuration/environments.rst
Original file line number Diff line number Diff line change
Expand Up @@ -230,15 +230,16 @@ behavior:
# 'test' environment and debug disabled
$ php app/console command_name --env=test --no-debug

In addition to the ``--env`` and ``--debug`` options, Symfony commands behavior
can also be controlled with environment variables. The Symfony console application
checks the existence and value of these environment variables before executing
any command:

* ``SYMFONY_ENV``, sets the execution environment of the command to the value of
this variable (``dev``, ``prod``, ``test``, etc.);
* ``SYMFONY_DEBUG``, if ``0``, debug mode is disabled. Otherwise, debug mode is
enabled.
In addition to the ``--env`` and ``--debug`` options, the behavior of Symfony
commands can also be controlled with environment variables. The Symfony console
application checks the existence and value of these environment variables before
executing any command:

``SYMFONY_ENV``
Sets the execution environment of the command to the value of this variable
(``dev``, ``prod``, ``test``, etc.);
``SYMFONY_DEBUG``
If ``0``, debug mode is disabled. Otherwise, debug mode is enabled.

These environment variables are very useful for production servers, because they
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Afaik you can omit the comma.

allow you to ensure that commands are always run on ``prod`` environment without
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[...] run in the [...]

Expand Down
0