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