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

[Deployment] - More accurate local .env file recommendation #20785

Open
wants to merge 2 commits into
base: 7.2
Choose a base branch
from

Conversation

jdevinemt
Copy link

Updated file recommended for use when using .env files to manage environment variables for the application.

Previously, the recommended file was .env.local, but if values added here would be overridden by .env.prod if present. It might be uncommon that someone would use a combination of .env and .env.prod, but it can't be assumed that it isn't the case. Using .env.prod.local is always going to be the last file processed by the dotenv component by default.

It might be even better to not reference "prod" directly in .env.prod.local and instead say .env.<env>.local, but prod is explicitly referenced elsewhere in this section/page. So I left the explicit reference.

Updated file recommended for use when using .env files to manage environment variables for the application.
@jdevinemt jdevinemt changed the title Update deployment.rst - More accurate local .env file recommendation [Deployment] - More accurate local .env file recommendation Mar 20, 2025
Corrected internal link.

Co-authored-by: Matthieu Lempereur <[email protected]>
@xabbuh xabbuh added this to the 6.4 milestone Mar 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants