Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Add DDEV_APPROOT web container variable equivalent of host #7198

@shelane

Description

@shelane

Is there an existing issue for this?

  • I have searched the existing issues

Is your feature request related to a problem?

There is an environment variable for the host that will give the absolute path to the project root directory. It would be great to have the equivalent in web so that we can use the variable in custom commands in the web container.

Describe your solution

Add DDEV_APPROOT="/var/www/html" to environment variables for the web service. (PR incoming)

Describe alternatives

The alternative is for the user to hard code that value in custom command files or create their own variable.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions