Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit622af49

Browse files
committed
Merge branch '5.3' into 5.4
* 5.3: fix(symfony-cli): remove APP_ENV=test behaviour with the database
2 parents05437d3 +08889fb commit622af49

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)

[8]ページ先頭

©2009-2025 Movatter.jp