Block main thread after starting system

This commit is contained in:
Marcin Kulik 2017-01-13 19:10:34 +01:00
parent ffefc44f41
commit 08f2c2fdae

View File

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