File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -378,6 +378,16 @@ its location, same as for ``docker-compose``:
378
378
If you have more than one Docker Compose file, you can provide them all
379
379
separated by ``: `` as explained in the `Docker compose CLI env var reference `_.
380
380
381
+ .. caution ::
382
+
383
+ When using Symfony binary with ``php bin/console `` (``symfony console ... ``)
384
+ the binay will **always ** use environment variables detected via Docker and will
385
+ ignore local environment variables.
386
+ For example if you set up a different database name in your ``.env.test `` file
387
+ (``DATABASE_URL=mysql://db_user:db_password@127.0.0.1:3306/test ``) and if you run
388
+ ``symfony console doctrine:database:drop --force --env=test `` the command will drop the database
389
+ defined in your Docker configuration and not the "test" one.
390
+
381
391
SymfonyCloud Integration
382
392
------------------------
383
393
You can’t perform that action at this time.
0 commit comments