Final step
This commit is contained in:
@@ -74,6 +74,7 @@
|
||||
(catch Exception e
|
||||
(log/warn e))))
|
||||
|
||||
#_{:clj-kondo/ignore [:clojure-lsp/unused-public-var]}
|
||||
(mount/defstate jetty-stats
|
||||
:start (scheduler/every (* 1000 10) collect-jetty-stats)
|
||||
:stop (scheduler/stop jetty-stats))
|
||||
@@ -118,16 +119,12 @@
|
||||
(job-close-auto-invoices/-main)
|
||||
|
||||
:else
|
||||
(let [without (cond-> []
|
||||
(not (env :run-web? )) (into [#'jetty
|
||||
#'jetty-stats])
|
||||
(not (env :run-background?)) (into [#'migrate/migrate-start]))]
|
||||
(log/info "starting without " without)
|
||||
|
||||
|
||||
(do
|
||||
(add-shutdown-hook! shutdown-mount)
|
||||
(start-server :port 9000 :bind "0.0.0.0" #_#_:handler (cider-nrepl-handler))
|
||||
#_(alter-var-root #'nrepl.middleware.print/*print-fn* (constantly clojure.pprint/pprint))
|
||||
(apply mount/start-without without)))))
|
||||
(mount/start)
|
||||
#_(alter-var-root #'nrepl.middleware.print/*print-fn* (constantly clojure.pprint/pprint))))))
|
||||
|
||||
(comment
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user