Skip to content

Commit 05c591e

Browse files
committed
minor #15450 fix(symfony-cli): remove APP_ENV=test behaviour with the database (Kocal)
This PR was merged into the 4.4 branch. Discussion ---------- fix(symfony-cli): remove APP_ENV=test behaviour with the database Our CI started to fail since the last Symfony CLI releases, because there is no APP_ENV=test behaviour with the database anymore with https://github.com/symfony/cli/releases/tag/v4.25.3 and/or https://github.com/symfony/cli/releases/tag/v4.25.4. Looks like the solution is to do the same than symfony/recipes#939. Commits ------- e5767e1 fix(symfony-cli): remove APP_ENV=test behaviour with the database
2 parents 062e475 + e5767e1 commit 05c591e

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
@@ -322,22 +322,6 @@ prefixed with ``DB_``, but as the ``com.symfony.server.service-prefix`` is set
322322
to ``DATABASE``, the web server creates environment variables starting with
323323
``DATABASE_`` instead as expected by the default Symfony configuration.
324324

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

0 commit comments

Comments
 (0)