From 46febb3205ad768b044ad13caa68c4eba5ce41bb Mon Sep 17 00:00:00 2001 From: Matthias Andreas Benkard Date: Sat, 5 May 2012 11:32:05 +0200 Subject: Make uberjar'able. --- src/mulk/benki/main.clj | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/mulk/benki/main.clj b/src/mulk/benki/main.clj index 031a500..55239d5 100644 --- a/src/mulk/benki/main.clj +++ b/src/mulk/benki/main.clj @@ -14,7 +14,8 @@ [aleph.http :as ahttp] [aleph.formats :as aformats] [ring.util.codec :as codec]) - (:import [java.math BigDecimal BigInteger])) + (:import [java.math BigDecimal BigInteger]) + (:gen-class)) (defn wrap-utf-8 [handler] @@ -91,13 +92,13 @@ {:port (:web-port @benki-config) :websocket true}))) -(defonce server +(def server (atom nil)) + +(defn -main [& args] (do (future (mulk.benki.xmpp/init-xmpp!)) (future (mulk.benki.lazychat/init-lazychat!)) - (future (run-server)))) - -(defn -main [& args] + (future (swap! server (run-server)))) (loop [] (Thread/sleep 1000000) (recur))) -- cgit v1.2.3