8000 Make it more clear which environment variables are overwritten · Issue #547 · symfony-cli/symfony-cli · GitHub
[go: up one dir, main page]

Skip to content
Make it more clear which environment variables are overwritten #547
Open
@alexander-schranz

Description

@alexander-schranz

Over the last years I did see a lot of people run into issue that symfony serve overwrites the DATABASE_URL depending on the things configured in the docker compose file.

I think It would be great to output the overwrites when starting the symfony serve or server:start webserver.

Currently we have the following output where we could also add a Info boxor inside the green box more information:

 [WARNING] The local web server is optimized for local development and MUST never be used in a production setup.

 [OK] Web server listening
      The Web server is using PHP FPM 8.1.31
      https://127.0.0.1:8000
      https://int3grate.wip
      
 [Info] Docker Integration Environment Variables
 
      DATABASE_URL=....
      KAFA_...=....

Currently the behaviour is only documented in https://symfony.com/doc/current/setup/symfony_server.html#docker-integration but sure most don't stumble over it and its unclear for endusers why there .env or .env.local ENVs aren't used.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0