Block main thread after starting system

next
Marcin Kulik 8 years ago
parent ffefc44f41
commit 08f2c2fdae

@ -12,4 +12,5 @@
system (->> (load-system [(io/resource "asciinema/system.edn")] bindings)
(component/start))]
(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…
Cancel
Save