From dc5646d243dd48922f54e962e7eb4c0d729e930e Mon Sep 17 00:00:00 2001 From: Matthias Andreas Benkard Date: Sat, 5 Nov 2011 19:42:36 +0100 Subject: =?UTF-8?q?Enable=20the=20use=20of=20=E2=80=9Clein=20run=E2=80=9D?= =?UTF-8?q?=20to=20run=20the=20server.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/mulk/benki/main.clj | 12 ++++++++++-- src/mulk/benki/wiki.clj | 3 +-- 2 files changed, 11 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/mulk/benki/main.clj b/src/mulk/benki/main.clj index 59aa512..9d36a31 100644 --- a/src/mulk/benki/main.clj +++ b/src/mulk/benki/main.clj @@ -4,10 +4,13 @@ noir.core [hiccup core page-helpers] [mulk.benki util]) - (:require noir.server)) + (:require noir.server + [mulk.benki wiki auth])) -(defonce server (noir.server/start 3000)) +(defonce server (doto (Thread. #(noir.server/start 3000)) + (.setDaemon true) + (.start))) (defn wrap-utf-8 [handler] (fn [request] @@ -44,3 +47,8 @@ (layout [:h1 "Journal"])) + +(defn -main [& args] + (loop [] + (Thread/sleep 1000000) + (recur))) diff --git a/src/mulk/benki/wiki.clj b/src/mulk/benki/wiki.clj index 094bf02..9615f0b 100644 --- a/src/mulk/benki/wiki.clj +++ b/src/mulk/benki/wiki.clj @@ -12,8 +12,7 @@ clojureql.core [clojure.java.jdbc :only [transaction]] - noir.core) - (:require mulk.benki.main)) + noir.core)) (def page_revisions (table :page_revisions)) -- cgit v1.2.3