Final step

This commit is contained in:
2022-09-27 21:13:59 -07:00
parent 63254ba401
commit c0cd43b248
2 changed files with 5 additions and 13 deletions

View File

@@ -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
)