This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-03-16
Channels
- # aws-lambda (3)
- # beginners (20)
- # boot (201)
- # cljs-dev (45)
- # cljsrn (9)
- # clojars (19)
- # clojure (141)
- # clojure-china (2)
- # clojure-dev (11)
- # clojure-greece (6)
- # clojure-italy (1)
- # clojure-new-zealand (1)
- # clojure-romania (1)
- # clojure-russia (55)
- # clojure-spec (58)
- # clojure-taiwan (1)
- # clojure-uk (97)
- # clojure-ukraine (40)
- # clojurescript (77)
- # core-async (5)
- # core-typed (1)
- # cursive (35)
- # datomic (9)
- # jobs (2)
- # jobs-rus (25)
- # juxt (8)
- # lein-figwheel (14)
- # luminus (24)
- # mount (16)
- # off-topic (56)
- # om (36)
- # onyx (22)
- # pedestal (3)
- # perun (14)
- # re-frame (111)
- # reagent (5)
- # remote-jobs (6)
- # ring-swagger (3)
- # slack-help (1)
- # specter (17)
- # unrepl (12)
- # untangled (56)
@lucian303 mount uses namespace hierarchy to infer what states need to be started and the ordfer they're started in
if you you're not using the db
namespace anywhere, then the state defined there will not be started
@yogthos i'm requiring the db namespace in the namespace that calls one of the functions from it. do i need to do anything more? i also tried adding it to the appname.core namespace in case it needs to be referenced before the actual mount.core/start call, but that doesn't seem to help
yes. the uberjar will also not build, interestingly enough, even w/ that second call. i'll try #mount in the morn. thanks for your help
@yogthos haven't had much luck in the #mount channel, but if u want to see an example of what's happening, i pushed a test repo to github: https://github.com/lucian303/luminus-test ... it's pretty simple. as soon as i write code to access a db function from any other namespace, i can no longer run the repl, server with lein run, or uberjar. i can't even fix the uberjar by manually calling mount.core/start and i can't even start the repl to load the app
in profiles.clj. i'm 100% certain the db connection works cause i'm able to get data out
right now, i call mount.core/start in the namespace that uses the db functions then run the repl then i can call user/start and stop. probably the uberjar is not configured for production right now, but i'm not worried about the uberjar. i'm just trying to see if this works
this will go through -main
and run start-app
function that loads mount components in the core
namespace