Block main thread after starting system
This commit is contained in:
parent
ffefc44f41
commit
08f2c2fdae
@ -12,4 +12,5 @@
|
|||||||
system (->> (load-system [(io/resource "asciinema/system.edn")] bindings)
|
system (->> (load-system [(io/resource "asciinema/system.edn")] bindings)
|
||||||
(component/start))]
|
(component/start))]
|
||||||
(add-shutdown-hook ::stop-system #(component/stop system))
|
(add-shutdown-hook ::stop-system #(component/stop system))
|
||||||
(println "Started HTTP server on port" (-> system :http :port))))
|
(println "Started HTTP server on port" (-> system :http :port)))
|
||||||
|
@(promise))
|
||||||
|
Loading…
Reference in New Issue
Block a user