# Local environment variables for development and testing
Before we appreciate .env.dist.local , let's revisit the pain points of traditional .env management. .env.dist.local
One popular solution to manage environment variables is to use .env files. A .env file is a text file that stores environment variables in a key-value format. For example: # Local environment variables for development and testing
# .env.dist.local # This file is committed to the repository. # Copy to .env.local for actual local development. DB_USER=root ). : Your personal
Like any .dist file, this is tracked by Git. It should only contain keys and "safe" default values (e.g., DB_USER=root ).
: Your personal, machine-specific overrides (ignored by Git).
In the "brain" of the application, the priority usually looks like this: