Personally, I AOT compile a stub servlet class and load my webapp into Tomcat. This will require that you set up your directory structure following the Servlet API spec.
I also have some code in same file that my servlet is defined in that will start a swank server only if the code is not being compiled, and only if swank hasn't been stated yet. Once that has been done, it is a simple matter to M-x slime-connect to get a repl connection to my running server. (I've bound this to a key to make it even easier.) As an aside, Compojure has it's own group that you might find more examples of how people are using this library. http://groups.google.com/group/compojure On Fri, Jan 30, 2009 at 11:00 AM, eyeris <drewpvo...@gmail.com> wrote: > > I'm considering implementing a small web app using Compojure. I don't > have much experience with Jetty or any other web server save Apache. > > While testing Compojure, I've been using the embedded Jetty API. This > has been convenient for getting up and running quickly. However I > don't like having to restart my script each time I need to test a > change. I love the fast no-compile, no-restart development-test cycle > of Python and PHP. I've tried to get the automatic reloading feature > of Jetty working, but it seems as if that feature doesn't support > reloading the script that started the Jetty server. > > If you use Compojure, how do you use it? e.g. Embedded Jetty, external > Jetty, Apache + Tomcat, etc. Has anyone been able to configure Jetty > to automatically reload Clojure files? > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~----------~----~----~----~------~----~------~--~---