[dev.clj]: note about custom app namespace
This commit is contained in:
parent
26322005e6
commit
c7abfb31e7
2 changed files with 15 additions and 3 deletions
14
README.md
14
README.md
|
|
@ -111,7 +111,19 @@ maintain the start order for all the `defstates`.
|
|||
|
||||
The "start" order is then recorded and replayed on each `(reset)`.
|
||||
|
||||
The "stop" order is simply `(reverse "start order")`.
|
||||
The "stop" order is simply `(reverse "start order")`:
|
||||
|
||||
```clojure
|
||||
dev=> (reset)
|
||||
15:32:44.343 [nREPL-worker-2] DEBUG mount - << stopping.. conn
|
||||
15:32:44.344 [nREPL-worker-2] DEBUG mount - << stopping.. app-config
|
||||
|
||||
:reloading (app.config app.nyse app.utils.datomic app dev)
|
||||
|
||||
15:32:44.371 [nREPL-worker-2] DEBUG mount - >> starting.. app-config
|
||||
15:32:44.380 [nREPL-worker-2] DEBUG mount - >> starting.. conn
|
||||
:ready
|
||||
```
|
||||
|
||||
You can see examples of start and stop flows in the [example app](https://github.com/tolitius/mount#mount-and-develop).
|
||||
|
||||
|
|
|
|||
|
|
@ -13,8 +13,8 @@
|
|||
[clojure.test :as test]
|
||||
;; [clojure.core.async :refer [>!! <!! >! <! go-loop alt! timeout]]
|
||||
[clojure.tools.namespace.repl :refer [refresh refresh-all]]
|
||||
[app :refer :all]
|
||||
[mount :as app]))
|
||||
[mount :as app]
|
||||
[app :refer :all])) ;; <<<< replace this your "app" namespace(s) you want to be available at REPL time
|
||||
|
||||
(defn start []
|
||||
(app/start))
|
||||
|
|
|
|||
Loading…
Reference in a new issue