lein-figwheel

xlevus 2017-09-17T15:20:41.000006Z

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 <http://localhost:3449/js/compiled/app.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.

joelgluth 2017-09-21T10:01:48.000096Z

@xlevus 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

xlevus 2017-09-21T21:32:51.000271Z

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.