Fork me on GitHub
#boot
<
2018-08-14
>
upgradingdave15:08:33

Hi all, (hopefully quick) question: when I use boot-reload along with the boot serve task to serve static site, reload works fine (it reloads my compiled cljs files from /public/static/js/dev.out).

upgradingdave15:08:55

but if I change boot serve to serve a ring handler, and the ring handler routes /public/static/js to http://localhost:3000/js, then when boot-reload tries to load from http://localhost:3000/public/static/js, the reload no longer works

upgradingdave15:08:49

is there a way to tell boot-reload to serve from the handler route (/js) instead of the full relative path to the compiled js (/public/static/js)?

upgradingdave15:08:41

ah ha, nevermind, figured it out 😎

upgradingdave15:08:12

(reload :asset-path "/public/static")

upgradingdave15:08:45

that threw me off because :asset-path in the *.edn.cljs files has a different meaning