.env.dist.local [2021] Direct
So, why should you use .env.dist.local in your projects? Here are some benefits:
: Use this file to document variables that are unique to a developer's machine but necessary for the app to run (e.g., LOCAL_DB_PORT=5432 ). .env.dist.local
to prevent sensitive local configurations from being shared in a public repository. Comparison with Common Env Files Version Controlled? Default values for all environments. So, why should you use
: Developers use it as a starting point by running a command like cp .env.dist.local .env.local to create their private config file. How it differs from other .env files Git Tracked? .env Default values for all environments. .env.dist A "distribution" template for the entire project. .env.dist.local Yes A template specifically for local machine overrides. .env.local The actual local secrets/settings for your machine. Comparison with Common Env Files Version Controlled