-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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
Changes from 1 commit
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
7c4cd17
Documented the console environment variables
javiereguiluz 6fc8f4c
Fixed some errors in the explanation
javiereguiluz 8ead4a4
Minor grammar fix
javiereguiluz a1d88d8
More grammar fixes
javiereguiluz 2fb082d
Rewordings and transformed a list into a definition list
javiereguiluz dd8157f
More tweaks and grammar fixes
javiereguiluz df2a0f2
Fixes and tweaks
javiereguiluz File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Rewordings and transformed a list into a definition list
- Loading branch information
commit 2fb082d751190d6f6ccbef9942f319549f2958ed
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
allow you to ensure that commands are always run on ``prod`` environment without | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [...] run in the [...] |
||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
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.