 (defn defserver
   "Start a server and bind the result to a var, 'server'."
   [& args]
-  (conf/load)
   (reset! server (apply serve args)))
 
 (defn stop-server []

(ns incise.server
  (:require (compojure [route :refer [resources not-found]]
                       [core :refer [defroutes]])
            (hiccup [page :refer [html5]])
            (incise [config :as conf]

            [clojure.stacktrace :refer [print-cause-trace]]
            [org.httpkit.server :refer [run-server]]))

(conf/load)
(defroutes routes
  (files "/" {:root (conf/get :out-dir)})
  (not-found (html5 [:h1 "404"])))

(defn wrap-static-index [handler]
