If I have a config file for an Integrant system in a .clj rather than a .edn, is it madness to read from my (System/getenv)
directly in the config file? Or should that always be done in init-key
?
Sorry for the highlight, but I would love to hear your thoughts on this @weavejester!
@curlyfry You can build an Integrant configuration programmatically. In Duct I have a #duct/env
tag for accessing the environment. Aero also has a #aero/env
key I believe.
So using a tag to access the environment is a reasonable idea, I think. That gives you the power of getenv
but keeps the configuration as data(ish).
@weavejester Thanks a lot for that answer, sounds very reasonable. Also thanks for Integrant, I really enjoy working with it so far! It's the only one of Component/Mount/Integrant that I feel I can really grasp quickly and grow a system.
Glad to hear you’re getting on with it! 🙂