Domanda

I am using a luminus web project and added a library that I am developing in parallel to it via the checkouts feature of leiningen. Now, what I want is that the reloading of source files works too for the project that I refer to via the checkouts folder. Is there way to do that? I have not succeeded so far changing the :reload-paths or wrap-reload options.

È stato utile?

Soluzione

Ok, in the end it was pretty easy, however, finding that out, was not.

In core.clj there is this code:

(http-kit/run-server
    (if (dev? args) (reload/wrap-reload app) app)

Simply change it to this one:

(http-kit/run-server
    (if (dev? args) (reload/wrap-reload app 
        {:dirs ["src" "checkouts/subproject/src"]}) app)

You can add as many folders you want, all will get watched for source changes.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top