Skip to content
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

Support .env.local config override #594

Merged
merged 1 commit into from
May 29, 2021

Conversation

swalkinshaw
Copy link
Member

@swalkinshaw swalkinshaw commented May 28, 2021

Suggested by @tangrufus in #586 (comment)

If .env.local exists, any values will override and take precedence over those in .env. This is meant for local development only. Note: .env.local is already gitignored

There's been some other related proposals in #587 and #586 but this one is simpler since it's additive only. We're just supporting a common workflow without breaking anything.

If `.env.local` exists, any values will override and take precedence
over those in `.env`.

This is meant for local development only.
@swalkinshaw swalkinshaw force-pushed the support-env-local-config-override branch from dd06d6d to 75040b8 Compare May 29, 2021 02:22
@swalkinshaw swalkinshaw merged commit b2781b8 into master May 29, 2021
@swalkinshaw swalkinshaw deleted the support-env-local-config-override branch May 29, 2021 02:23
g000m added a commit to g000m/bedrock that referenced this pull request Jul 1, 2021
* Switch to GitHub actions (roots#597)

* Update build status badge

* Move disallow indexing mu-plugin to package (roots#521)

Co-authored-by: QWp6t <hi@qwp6t.me>
Co-authored-by: Scott Walkinshaw <scott.walkinshaw@gmail.com>

* Support .env.local config override (roots#594)

If `.env.local` exists, any values will override and take precedence
over those in `.env`.

This is meant for local development only.

* Default to `WP_DEBUG_LOG=true` in development (roots#505)

Setting WP_DEBUG_LOG to `true` will cause WP to automatically log debug
output to <WP_CONTENT>/debug.log (so app/debug.log) which is a sensible default.

This also comments out the old placeholder value in `.env.example` since
`true` is a better default.

Co-authored-by: Scott Walkinshaw <scott.walkinshaw@gmail.com>
Co-authored-by: Ben Word <ben@benword.com>
Co-authored-by: QWp6t <hi@qwp6t.me>
Co-authored-by: QWp6t <QWp6t@users.noreply.github.com>
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

Successfully merging this pull request may close these issues.

None yet

1 participant