Fork me on GitHub
#lein-figwheel
<
2017-09-17
>
xlevus15:09:41

What's the correct way to serve figwheel through another Ring app? I don't think I'm doing it right. I'm currently running my backend with lein run and then figwheel with lein figwheel dev. lein run will spit out the figwheel-served JS This seems to get everything connected to the Figwheel websocket. But, on first-load it appears to be running the version of the clojurescript as compiled by lein run and not figwheel. It's not until I change and save my cljs files I get the feature I'm working on.

joelgluth10:09:48

@U0529P22K do you absolutely have to run figwheel via ring, or would you be OK running ring via figwheel? There’s a small example here: https://github.com/bhauman/lein-figwheel/tree/master/examples/using-ring-handler

xlevus21:09:51

I need to run some startup and shutdown stuff. Which I started doing in the global namespace, but weird things happened that didn't happen when running through ring.