Take the tour ×  I'm new to clojure and compojure and I was
wondering if there's a way to do a hot reload of code changes as
you can with Ruby's Sinatra (with the shotgun gem) or Java's
Play!  I'm following along with this Heroku tutorial so if
there's a way to do it with the foreman gem that would work too.
share|improve this question add comment  2 Answers  up vote 6
down vote accepted  Take a look at this SOq:  and this tutorial:
The suggestion is to use ring's reload middleware.
share|improve this answer Perfect, thanks! –  kreek Dec 15 '11
at 3:18 add comment  Recent versions of Compojure make it even
easier by incorporating all of the middleware into a single
function call:   In particular...  (require '[compojure.handler
as handler])  ; define my-routes in here as normal
(handler/site my-routes)  I'm using some of this in my own
projects. It works well, but I'll switch back to choosing ring
middleware directly if I decide that I need to add or remove
anything.  share|improve this answer add commen