Skip to content

Commit ba50107

Browse files
javiereguiluzOskarStark
authored andcommitted
Improved the check requirements section of the deployment article
1 parent cadd04c commit ba50107

File tree

1 file changed

+27
-2
lines changed

1 file changed

+27
-2
lines changed

deployment.rst

+27-2
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,32 @@ you'll need to do:
112112
A) Check Requirements
113113
~~~~~~~~~~~~~~~~~~~~~
114114

115-
Use the ``check:requirements`` command to check if your server meets the
116-
:ref:`technical requirements for running Symfony applications <symfony-tech-requirements>`.
115+
There are some :ref:`technical requirements for running Symfony applications <symfony-tech-requirements>`.
116+
In your development machine, the recommended way to check these requirements is
117+
to use `Symfony CLI`_. However, in your production server you might prefer to
118+
not install the Symfony CLI tool. In those cases, install this other package in
119+
your application:
120+
121+
.. code-block:: terminal
122+
123+
$ composer require symfony/requirements-checker
124+
125+
Then, make sure that the checker is included in your Composer scripts:
126+
127+
.. code-block:: json
128+
129+
{
130+
"...": "...",
131+
132+
"scripts": {
133+
"auto-scripts": {
134+
"vendor/bin/requirements-checker": "php-script",
135+
"...": "..."
136+
},
137+
138+
"...": "..."
139+
}
140+
}
117141
118142
.. _b-configure-your-app-config-parameters-yml-file:
119143

@@ -257,3 +281,4 @@ Learn More
257281
.. _`Clever Cloud`: https://www.clever-cloud.com/doc/php/tutorial-symfony/
258282
.. _`Symfony Cloud`: https://symfony.com/doc/master/cloud/intro.html
259283
.. _`Scalingo`: https://doc.scalingo.com/languages/php/symfony
284+
.. _`Symfony CLI`: https://symfony.com/download

0 commit comments

Comments
 (0)