Hey folks, is it possible to disable the builtin web server?
Can't seem to find the relevant config option in the README
@dergutemoritz you can't disable the built in webserver (required for websocket communication), you can still run your own server in addition to it.
@bhauman Thanks! In my case, the system is only started in order to be able to run build-once
so the web server doesn't really serve a purpose but may collide with another one listening on the same port. Not a big deal, though 🙂
so your certain that :build-once is starting the server?
Oh no, I'm using figwheel-sidecar.repl-api
here
@bhauman ^ 🙂
@dergutemoritz yeah so all repl api commands require a server
@bhauman Right, figured as much!
you can use the clojurescript build fn if you are just needing to build something from a script
Oh wait but figwheel-sidecar.repl-api/build-once
doesn't really need the web server, does it?
Or does it to push the change into the browser
?
@bhauman Which clojurescript fn are you talking about specifically? The compiler's main entry point? I would like one that would let me re-use the build config from project.clj
all those commands are designed to be accessed through the cljs repl
Yeah make sense, given the namespace, hee
you can use them from the repl but they need a running system
@bhauman What I'm actually looking for is a way to call into lein-cljsbuild
from the main application context (i.e. not from the Leiningen context). Do you know whether there is such an API?
I really suggest doing it the way the cljs Quick Start prescribes... you can get the config data with figwheels/fetch-config
@bhauman Ah excellent, that's exactly what I was looking for 🙂 Thanks!
Works like a charm :thumbsup: