Assemble an Integrant system from a loaded configuration map.
This is the half of wagoe.system-config that is the same in every
application: the components every Wagoe app has (database, HTTP, router,
observability, i18n), the framework modules its config switches on, and the
modules bb scaffold generate produced. What is left for the application is
what only it knows — see the generated config.clj.
Before BOU-326 this lived in the generated file, 404 lines of it, and a
second copy lived in this repository's own src/wagoe/system_config.clj.
Neither copy wired :wagoe/workflow-db-schema, so wagoe add workflow
produced a module whose tables were never created.
Usage: (system-config (config/load-config) {:extra-modules #{:wagoe/user}})
Assemble an Integrant system from a loaded configuration map.
This is the half of `wagoe.system-config` that is the same in every
application: the components every Wagoe app has (database, HTTP, router,
observability, i18n), the framework modules its config switches on, and the
modules `bb scaffold generate` produced. What is left for the application is
what only it knows — see the generated `config.clj`.
Before BOU-326 this lived in the generated file, 404 lines of it, and a
second copy lived in this repository's own `src/wagoe/system_config.clj`.
Neither copy wired `:wagoe/workflow-db-schema`, so `wagoe add workflow`
produced a module whose tables were never created.
Usage:
(system-config (config/load-config) {:extra-modules #{:wagoe/user}})(system-config config)(system-config config
{:keys [extra-modules base-ns]
:or {extra-modules #{} base-ns "wagoe"}})The Integrant configuration for config.
Options:
:extra-modules modules the application enables in code rather than in
config. wagoe new writes #{:wagoe/user} here, or an
empty set for --no-user.
:base-ns namespace prefix for scaffolded modules, default "wagoe"
— what bb scaffold generate uses unless told otherwise.
Merge your own components over the result; nothing here is privileged.
The Integrant configuration for `config`.
Options:
:extra-modules modules the application enables in code rather than in
config. `wagoe new` writes `#{:wagoe/user}` here, or an
empty set for `--no-user`.
:base-ns namespace prefix for scaffolded modules, default "wagoe"
— what `bb scaffold generate` uses unless told otherwise.
Merge your own components over the result; nothing here is privileged.cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |