0

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?

Gordon Gustafson
  • 40,133
  • 25
  • 115
  • 157
Rooney
  • 1,195
  • 10
  • 18

1 Answers1

0

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

Jaime Agudo
  • 8,076
  • 4
  • 30
  • 35
  • 1
    Thank you but i've solved this problem. There is solution on project file. I just added this part like ' {:ring {:open-browser? false, :stacktraces? false, :auto-reload? true}} '. – Rooney Dec 10 '14 at 13:08