8000 minor #8122 Improved the explanation about deployment + parameters.ym… · symfony/symfony-docs@e83a222 · GitHub
[go: up one dir, main page]

Skip to content

Commit e83a222

Browse files
committed
minor #8122 Improved the explanation about deployment + parameters.yml (javiereguiluz)
This PR was squashed before being merged into the 2.7 branch (closes #8122). Discussion ---------- Improved the explanation about deployment + parameters.yml This fixes #5158. As usual, the explanations in this article are a bit vague, because this is a generic deployment article and it contains no details (we have dedicated articles to explain those details). Commits ------- 186458c Improved the explanation about deployment + parameters.yml
2 parents c42f640 + 186458c commit e83a222

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

deployment.rst

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -120,11 +120,20 @@ Check if your server meets the requirements by running:
120120
121121
$ php app/check.php
122122
123-
B) Configure your ``app/config/parameters.yml`` File
124-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
123+
.. _b-configure-your-app-config-parameters-yml-file:
125124

126-
This file should *not* be deployed, but managed through the automatic utilities
127-
provided by Symfony.
125+
B) Configure your Parameters File
126+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
127+
128+
Most Symfony applications define configuration parameters in a file called
129+
``app/config/parameters.yml``. This file should *not* be deployed, because
130+
Symfony generates it automatically using the ``app/config/parameters.yml.dist``
131+
file as a template (that's why ``parameters.yml.dist`` must be committed and
132+
deployed).
133+
134+
If your application uses environment variables instead of these parameters, you
135+
must define those env vars in your production server using the tools provided by
136+
your hosting service.
128137

129138
C) Install/Update your Vendors
130139
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

0 commit comments

Comments
 (0)
0