 
 (defn def-server []
   (def server
-    (jetty/run-jetty #'dev-app
-                     {:port 8000
-                      :join? false
-                      :ssl? true
-                      :ssl-port 8443
-                      :keystore (str (env :home) "/jetty.keystore")
-                      :key-password (env :jetty-keystore-password)})))
+    (do (config/configuration-ok? [:jetty-keystore-password] *ns*)
+        (jetty/run-jetty #'dev-app
+                         {:port 8000
+                          :join? false
+                          :ssl? true
+                          :ssl-port 8443
+                          :keystore (str (env :home) "/jetty.keystore")
+                          :key-password (env :jetty-keystore-password)}))))
 
 (defn restart-server []
   (.stop server)

            [clj-http.conn-mgr :refer [make-reusable-conn-manager shutdown-manager]]
            [forces-assemble.http-utils :refer :all]
            [forces-assemble.auth :as auth]
            [liberator.core :refer [defresource]]
            [liberator.dev :refer [wrap-trace]]))

;; Mongo
(def mongo-uri
  (or (env :mongodb-mongolab-uri)
      "mongodb://localhost/test"))
(def mongo-connection-result (mg/connect-via-uri mongo-uri))
(def mongodb (:db mongo-connection-result))

(def coll-users "users")

                  :body (or (:body event) "")
                  :sound "default"}})

(defn add-event-to-channel
  [channel-id event]
  (let [cm (make-reusable-conn-manager {:threads 4 :timeout 10 :default-per-route 5})
