I've added wrap-development
but it doesn't seem to reload the server when I make changes. I see in the docs "reload middleware with the correct :dirs option set", where should this :dirs
be set? I've used it like so: https://github.com/pcolliander/api-test/blob/master/src/clj/api_test/handler.clj#L63 Anyone got an idea why it doesn't work?
@pontus.colliander that line in the docs is referring to https://github.com/immutant/immutant/blob/2.1.9/web/src/immutant/web/middleware.clj#L35, meaning it will set up wrap-reload
for you. What version of java are you using? Is this with Java 9?
And how are you starting the app?
Ah okay, so it's not something I should set anywhere myself? I'm starting it with lein run
, and in the project.clj I've set :main
to hit this start function: https://github.com/pcolliander/api-test/blob/master/src/clj/api_test/handler.clj#L75
And it's with Java 8