Effect CommunityEC
Effect Community2y ago
21 replies
Stephen Bluck

Creating .env.example from Config Definitions

When it comes to Config, how do I gather all of the configs used throughout my app to know what I need to set in my local env? Right now I have say 10 services, all with their own configs. The config definitions are co-located with them.

I can keep running the app to find that I have missed a config and then set it but that's quite tedious. Or I could go hunting for all definitions of a config and then set them, still quite tedious.

I kinda wanna be able to run a script to save a .env.example or something all derived from my config definitions, that would be cool and then could be part of a build step. Another thing not to worry about.
Was this page helpful?