Skip to content

Commit 08889fb

Browse files
committed
Merge branch '4.4' into 5.3
* 4.4: fix(symfony-cli): remove APP_ENV=test behaviour with the database
2 parents 1b54818 + 05c591e commit 08889fb

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

setup/symfony_server.rst

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -324,22 +324,6 @@ prefixed with ``DB_``, but as the ``com.symfony.server.service-prefix`` is set
324324
to ``DATABASE``, the web server creates environment variables starting with
325325
``DATABASE_`` instead as expected by the default Symfony configuration.
326326

327-
You don't need to create two containers for the main database and the test
328-
database. Using ``APP_ENV=test symfony`` will automatically adjust
329-
``DATABASE_*`` environment variables for the ``test`` environment:
330-
331-
.. code-block:: terminal
332-
333-
$ symfony var:export --multiline
334-
export DATABASE_DATABASE=app
335-
export DATABASE_NAME=app
336-
export DATABASE_URL=postgres://app:app@127.0.0.1:49160/app?sslmode=disable&charset=utf8
337-
338-
$ APP_ENV=test symfony var:export --multiline
339-
export DATABASE_DATABASE=app_test
340-
export DATABASE_NAME=app_test
341-
export DATABASE_URL=postgres://app:app@127.0.0.1:49160/app_test?sslmode=disable&charset=utf8
342-
343327
Here is the list of supported services with their ports and default Symfony
344328
prefixes:
345329

0 commit comments

Comments
 (0)