I am new to clojure/clojurescript web development.
lein ring server
and the modifications(for example routes) will be automatically reloaded to the server(hot-deploy).lein figwheel
, and it will spy on the changes of cljs source files and updated to the page accordingly.Now I started figwheel
and modified the back-end code(for example the routes). After I reload the page, the modified contents was not updated.
So Is there a way to integrate figwheel with the ring server so that the back-end change can be updated automatically?
The ring middleware wrap-reload will do this for you. There is also a very nice leiningen template called Chestnut which will set up a project for you with Figwheel and an auto reloading Ring backend.
This question shows an example of wrap-reload usage Compojure development without web server restarts
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With