integrant

2017-04-28T07:04:44.488770Z

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?

2017-04-28T13:13:37.557829Z

Sorry for the highlight, but I would love to hear your thoughts on this @weavejester!

2017-04-28T21:59:00.510765Z

@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.

2017-04-28T21:59:49.519277Z

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).

2017-04-28T23:00:39.031459Z

@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.

2017-04-28T23:02:41.046642Z

Glad to hear you’re getting on with it! 🙂