Skip to content

Should recognize .env file in baseroot #323

@zishanj

Description

@zishanj

It's better if the docker can recognize .env file in its root directory. Following is the working code in bin/moodle-docker-compose

# Load .env if it exists
if [ -f "$basedir/.env" ]; then
  export $(grep -v '^#' "$basedir/.env" | xargs)
fi

It's very handy.

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