Clojure:我的切入点在哪里?

时间:2013-10-01 21:14:34

标签: clojure

通常,Clojure应用程序具有-main入口点。我正在玩Compojure:

(defroutes app-routes
   (GET "/" [] handle-index)
   ...)

(def app
  (compojure.handler/site app-routes))

此申请中的切入点在哪里?在Ring的某个地方,因为要运行的命令是:lein ring server-headless?在任何情况下,命名空间中入口点的函数是什么?

1 个答案:

答案 0 :(得分:5)

检查project.clj是否有条目:ring {:handler yourproject.handler/app}。 有关详细信息,请https://github.com/weavejester/lein-ring