How do I stop jetty server in clojure?

前端 未结 2 745

I am writing a web application using ring and clojure. I am using the jetty adapter for the development server and emacs/SLIME for IDE. While wrap-reload does help, run-jetty bl

2条回答
  •  面向向阳花
    2021-01-30 03:51

    The Jetty documentation has some information on graceful shutdown of Jetty. That's probably not enough information but it may get you started.

    I haven't started playing with compojure yet, but overall I prefer to work with Tomcat. It's more full-featured; among other things, there is a well-documented API for starting it up and shutting it down, it listens for the shutdown command on a dedicated port; there are ant tasks to do this, and they could of course be called from a Java app as well. I just don't know what kind of magic Compojure does with connecting the REPL to a running instance of the Web container, and if/how automatic class reloading happens... hopefully someone else will be able to provide more information.

提交回复
热议问题