Clojurians
#mount
<
2016-03-05
>

This page is not created by, affiliated with, or supported by Slack Technologies, Inc.

mike145218:03:59

hello all! does anybody knows how to start only certain parts of the system, but replace some config states (in starting parts) by test configs?

mike145219:03:48

no, it doesn't. start-with performs start all system

mike145219:03:24

i need start only ceratin namespaces but in starting namespaces i need swap config to test config

dm320:03:51

if you scroll a bit up there's Be Composing part

dm320:03:08

where you can specify which nses to start and which to substitute

dm320:03:20

(scroll the README, I mean)

mike145221:03:49

solved! key is new version of mount. i've used 0.1.9 but now exist 0.1.10 with new functionality

mike145221:03:51

(-> (only #{#'foo/a #'foo/b #'foo/c #'bar/d #'baz/e}) (with-args {:a 42}) (except [#'foo/c #'bar/d]) (swap-states {#'foo/a #'test/a}) (swap {#'baz/e {:datomic {:uri "datomic:<mem://composable-mount>"}}}) mount/start)