Fork me on GitHub
#duct
<
2019-10-23
>
ccann21:10:52

Can someone point me in the right direction? I want config for duct.profile/local in local.edn to override our duct.profile/test configuration

ccann22:10:18

so if I have local.edn:

{:foo.api/router {:request-diffs? false
                  :pretty-router-exceptions false}}
and test.edn:
{:foo.api/router {:request-diffs? true} ... }}

ccann22:10:48

I want :request-diffs? false to override the value in test.edn

ccann22:10:11

I can see both respective keys and their values under their profiles when I call read-config but once we call prep-config with both profiles the value is always true

jahson23:10:26

AFAIK you could look into the place where you prepare the config and search for profiles there. For example, the default dev.clj

...
(def profiles
  [:duct.profile/dev :duct.profile/local])
...
(integrant.repl/set-prep! #(duct/prep-config (read-config) profiles))