8000 Made the explanation more concise · symfony/symfony-docs@ef05597 · GitHub
[go: up one dir, main page]

Skip to content

Commit ef05597

Browse files
Made the explanation more concise
1 parent a4823c4 commit ef05597

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

setup/symfony_server.rst

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -283,15 +283,11 @@ autoconfigured):
283283
# RABBITMQ_DSN
284284
rabbitmq: ...
285285
286-
If you rename environment variables inside the
287-
``docker-compose.yaml`` then you have to make sure Symfony is aware of this
288-
change as well. For example if inside your ``docker-compose.yaml`` you define
289-
``MYSQL_URL`` instead of ``DATABASE_URL``,
290-
you have to make sure that in your Symfony project all occurences of this
291-
environment variable are changed as well. A safer alternative to changing the
292-
environment variable could be to reassign ``MYSQL_URL`` to ``DATABASE_URL``
293-
inside your ``.env.local`` to ensure that the name Symfony expected is actually
294-
set:
286+
If your ``docker-compose.yaml`` file doesn't use the environment variable names
287+
expected by Symfony (e.g. you use ``MYSQL_URL`` instead of ``DATABASE_URL``)
288+
then you need to rename all occurrences of those environment variables in your
289+
Symfony application. A simpler alternative is to use the ``.env.local`` file to
290+
reassign the environment variables:
295291

296292
.. code-block:: bash
297293

0 commit comments

Comments
 (0)
0