Fork me on GitHub
#lein-figwheel
<
2016-12-14
>
dergutemoritz18:12:59

Hey folks, is it possible to disable the builtin web server?

dergutemoritz18:12:08

Can't seem to find the relevant config option in the README

bhauman20:12:02

@dergutemoritz you can't disable the built in webserver (required for websocket communication), you can still run your own server in addition to it.

dergutemoritz20:12:22

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

bhauman20:12:42

so your certain that :build-once is starting the server?

dergutemoritz20:12:55

Oh no, I'm using figwheel-sidecar.repl-api here

bhauman21:12:30

@dergutemoritz yeah so all repl api commands require a server

dergutemoritz21:12:53

@bhauman Right, figured as much!

bhauman21:12:21

you can use the clojurescript build fn if you are just needing to build something from a script

dergutemoritz21:12:24

Oh wait but figwheel-sidecar.repl-api/build-once doesn't really need the web server, does it?

dergutemoritz21:12:49

Or does it to push the change into the browser

dergutemoritz21:12:52

@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

bhauman21:12:54

all those commands are designed to be accessed through the cljs repl

dergutemoritz21:12:04

Yeah make sense, given the namespace, hee

bhauman21:12:23

you can use them from the repl but they need a running system

dergutemoritz21:12:10

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

bhauman21:12:21

I really suggest doing it the way the cljs Quick Start prescribes... you can get the config data with figwheels/fetch-config

dergutemoritz21:12:28

@bhauman Ah excellent, that's exactly what I was looking for 🙂 Thanks!

dergutemoritz21:12:28

Works like a charm :thumbsup: