Skip to content

Enabling xdebug from environment variable #176

@Chi-teck

Description

@Chi-teck

I would like to enable/disable xdebug extension from environment variable which is configured in .env file. I put the following statement to the docker-compose.yml file but it did not work out by some reason.

PHP_XDEBUG: ${PHP_XDEBUG}

I guess this condition is evaluated to true when the variable holds an empty string.

{{ if getenv "PHP_XDEBUG" }}

I am not familiar with go template syntax. Can it check more explicitly for emptiness of PHP_XDEBUG variable?

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