chestnut

r6203 2017-09-29T16:05:28.000300Z

I'm fairly new to Clojure/ClojureScript. So pardon me if I'm missing some obvious things... but is there a way to auto reload changed code in a Chestnut project? The cljs reloading (thanks to figwheel) is working fine. In the Chestnut readme it says that a Ring middleware is used to reload server-side code but I can't find any reference to that middleware in the code, nor do I know how the code reloading is supposed to work. Any clue? Thanks!

2017-09-29T16:17:32.000327Z

@robin896 the ring middleware isn't used anymore - chestnut has since moved to component. There are a few methods for reloading server side code now.

2017-09-29T16:19:50.000673Z

You can run (reset) which is the reloaded workflow way. If you're under emacs+cider, (reset) is also called when you run cider-refresh (C-c, C-x). I've also written a separate component that you can include that watches changes to your clj files and can call (reset) for you.

2017-09-29T16:29:34.000166Z

@rgm looks like you'd want to interact with figwheel system api to start the autobuild programmatically - https://github.com/bhauman/lein-figwheel/blob/master/sidecar/src/figwheel_sidecar/system.clj#L299

r6203 2017-09-29T16:30:36.000359Z

@featheredtoast Alright, (reset) works. Thanks!