Where did the run server go?

Previously, I could run the web server in compojure as follows:

(run-server {:port 8080} "/*" (servlet my-app))

Does anyone know where this function went through the last layout? (0.6.2)

The docs say that I have to run it from the command line and use some fancy auto-reboot function, after which I could also use python.

+5
source share
1 answer

You are looking at serious outdated documentation.

For berth use

(use 'ring.adapter.jetty)

(defn start-web []
  (run-jetty (var my-site) {:port 8080 :join? false}))

Where my site is your top-level feature.

, REPL SLIME. / , , .

EDIT: compojure , . . . https://github.com/mmcgrana/ring/wiki

+10

All Articles