Search code examples
clojurereloadcompojureforeman

Is there a way to do a hot reload in compojure?


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.

thanks!


Solution

  • Take a look at this SOq:

    and this tutorial:

    The suggestion is to use ring's reload middleware.