Skip to content

Should recognize .env file in baseroot #323

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
zishanj opened this issue Apr 23, 2025 · 1 comment
Closed

Should recognize .env file in baseroot #323

zishanj opened this issue Apr 23, 2025 · 1 comment

Comments

@zishanj
Copy link

zishanj commented Apr 23, 2025

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.

@paulholden
Copy link
Member

There's ongoing work in #249 to implement this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants