@solussd this worked for me: https://github.com/bhauman/lein-figwheel/wiki/Running-figwheel-in-a-Cursive-Clojure-REPL maybe its not appropriate, what is a figwheel.main?
thanks, but I’m using clojure deps (cli tools)
then there is a bunch of editor integration stuff as well starting here https://figwheel.org/docs/editor-integration.html
@bhauman I just figured out what I was doing wrong. 🙂
I’m now starting an nrepl in my user.clj w/ the piggieback middleware and calling figwheel.main.api/start w/ “dev” to get my cljs repl running in Cursive. Works great now– I can evaluate clojurescript line by line.
cider works using the template lein new figwheel testfig -- --reagent
and no changes. What is the
;; for CIDER
;; :plugins [[cider/cider-nrepl "0.12.0"]]
used for?antiquated and not needed. CIDER used to need to have its dependencies in place in the project. it now injects them. That release was at clojure/west in seattle on AuthorDate: Sat Apr 16 13:39:19 2016 -0700
. That sounds like the template might be old 🙂
I'm working on a small app using accountant/bidi for routing/browser URLs and I'd like to have the development server always serve up the index.html at any URL. Should I try to configure Figwheel to do this, or am I stepping outside of it's use case?
eg. http://localhost:3449/ and http://localhost:3449/something-else/ should both serve up my index.html
@ben735 you will want to have a ring handler handle these specific routes and return the index.html
you can configure a :ring-handler in your :figwheel configuration
https://figwheel.org/docs/ring-handler.html#the-last-handler
@bhauman thanks, so maybe I make that handler read the index.html file and serve up the contents?
great, thanks
keep in mind that page is for figwheel-main
but the ring handler example is correct
figwheel-main as distinct from figwheel-sidecar?
yes figwheel-main is different
thanks
I'm missing something with adding a :ring-handler to figwheel-sidecar. I've set :ring-handler be-scheduler.server/handler
and created the file at ,src/be_scheduler/server.clj
but I'm getting a java.lang.ClassNotFoundException: be-scheduler.server
.
ClojureScript files are being found under src
, but maybe I need to do something with this .clj
?