Commits

Marco Yuen  committed 96d2856

Add support for jetty.

  • Participants
  • Parent commits bef827f

Comments (0)

Files changed (2)

                      [ring-serve     "0.1.2"]
                      [ring-mock      "0.1.2"]]
   :resources-path "resources"
+  :main nextrain.core
   :ring {:handler nextrain.core/app})

File src/nextrain/core.clj

 (ns nextrain.core
   (:use compojure.core
-        nextrain.pages)
+        nextrain.pages
+        ring.adapter.jetty)
   (:require [compojure.route :as route]
             [compojure.handler :as handler]))
 
 ;      handler/site))
 (def app (handler/site main-routes))
 
+(defn -main [& args]
+  (run-jetty #'app {:port 3000 :join? true}))
+