ENV Files Need Consolidating and Refactoring
See original GitHub issueWe have too many .env files, and pretty much everything in the Makefile
needs values from both/all.
We need to revisit this in order to streamline dev setup.
A full review of the two .env files, plus what’s actually needed for debugging locally, should take place.
Issue Analytics
- State:
- Created 2 years ago
- Comments:11 (5 by maintainers)
Top Results From Across the Web
refactoring - What goes into .env file?
Ensure that your application accesses the configuration via a consistent internal mechanism, if you only happens to use environment variables ...
Read more >Support multiple .env files #7326 - docker/compose - GitHub
It's pretty common to have multiple .env files to override settings and is used in many projects. Some of the examples would be:....
Read more >Code Refactoring Best Practices: When (and When Not) to Do It
Earlier we stressed that refactoring should never affect the performance of an application and that it should only serve as a clean-up effort....
Read more >We need to talk about the .env | Platform.sh
.env files are a surrogate environment variable for local development only, but should never be committed to Git. Understand your application!
Read more >Node.js Everywhere with Environment Variables! - Medium
Create a .gitignore file (or edit your existing one, if you have one already) and add .env to it, as shown in the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Here is my suggestion for the config.yml file (I’d be happy to hear your thoughts/additions/changes):
Ah…lists of “objects”. Got it.
I agree…the primary contributors to this project are probably more familiar with YAML, and we already have instance of YAML files in our repo, and we probably have YAML extensions for VS Code enabled too. For these reasons alone it probably wins. If we were using
project.toml
files for our Python project or for our tests then that might be different.I’m not sure I agree that TOML is more verbose (compared to YAML). I also think that YAML might allow us/encourage us to add more complexity to our config than we need.
I still think we should throw together an example of what the end-state might look like before we go ahead and change all the ENV files to YAML. It would be good to see an example of the final YAML file we’re aiming for before we convert all of our code/scripts.