View changes to Selmer templates without restarting server

176 views Asked by At

I'm creating a web app with Clojure using Selmer templates. I'm using Jetty, and I have to restart it to see my changes. I want to see my changes without restarting the server. How can I achieve this?

1

There are 1 answers

1
Jaime Agudo On

I suggest you to migrate to http-kit to get hot code reload, it's very easy

Add [http-kit "2.1.18"] to your project.clj and org.httpkit.server to your use block, and just replace run-jetty with run-server. See details in the link above