Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Clojure: where is my entry point?

Tags:

clojure

Typically, Clojure app has -main entry point. I'm playing with Compojure:

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

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

Where is entry point in this application? Somewhere in Ring, because the command to run is this: lein ring server-headless? In any case, what function in entry point in the namespace?

like image 919
demi Avatar asked Oct 01 '13 21:10

demi


1 Answers

Check your project.clj for an entry :ring {:handler yourproject.handler/app}. For more info, https://github.com/weavejester/lein-ring

like image 82
Michiel Borkent Avatar answered Sep 17 '22 20:09

Michiel Borkent