Skip to content

Conversation

jdevinemt
Copy link
Contributor

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.

@jdevinemt jdevinemt changed the title Update deployment.rst - More accurate local .env file recommendation [Deployment] - More accurate local .env file recommendation Mar 20, 2025
@javiereguiluz javiereguiluz changed the base branch from 7.2 to 6.4 April 14, 2025 15:40
@javiereguiluz javiereguiluz requested a review from xabbuh as a code owner April 14, 2025 15:40
@javiereguiluz javiereguiluz merged commit b9f404b into symfony:6.4 Apr 14, 2025
3 checks passed
@javiereguiluz
Copy link
Member

@jdevinemt thanks ... and congrats on your first Symfony Docs contribution 🎉

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.

5 participants