Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Automatic Code reloading in Ring / Jetty

Using Ring / Jetty with Clojure, when I make any changes to my code, I have to reload my entire JVM.

Is there anyway of keeping Jetty asynchronous with changes in my code, so I can simply refresh the browser window and get changes immediately?

Specifically, I'm using Hiccup for HTML Parsing, and it's mainly changes in layout I'm making.

It would be a huge timesaver if layout changes were automatically compiled and available in browser on refresh.

Does anyone have any information on that? Are there any solutions?

like image 957
Robin Johnson Avatar asked Feb 20 '13 02:02

Robin Johnson


1 Answers

You might want to check out lein-ring specifically :auto-reload? and :auto-refresh? options.

like image 117
sinemetu1 Avatar answered Oct 06 '22 00:10

sinemetu1