lein-figwheel

dergutemoritz 2016-12-14T18:22:59.000046Z

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

dergutemoritz 2016-12-14T18:23:08.000047Z

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

bhauman 2016-12-14T20:52:02.000048Z

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

dergutemoritz 2016-12-14T20:53:22.000049Z

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

bhauman 2016-12-14T20:56:42.000050Z

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

bhauman 2016-12-14T20:57:22.000051Z

@dergutemoritz ^

dergutemoritz 2016-12-14T20:57:55.000052Z

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

dergutemoritz 2016-12-14T20:58:07.000053Z

@bhauman ^ 🙂

bhauman 2016-12-14T21:00:30.000054Z

@dergutemoritz yeah so all repl api commands require a server

dergutemoritz 2016-12-14T21:01:53.000055Z

@bhauman Right, figured as much!

bhauman 2016-12-14T21:02:21.000056Z

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

dergutemoritz 2016-12-14T21:02:24.000057Z

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

dergutemoritz 2016-12-14T21:02:49.000058Z

Or does it to push the change into the browser

dergutemoritz 2016-12-14T21:02:50.000059Z

?

dergutemoritz 2016-12-14T21:03:52.000060Z

@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

bhauman 2016-12-14T21:03:54.000061Z

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

dergutemoritz 2016-12-14T21:04:04.000063Z

Yeah make sense, given the namespace, hee

bhauman 2016-12-14T21:04:23.000064Z

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

dergutemoritz 2016-12-14T21:10:10.000066Z

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

bhauman 2016-12-14T21:11:21.000068Z

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

bhauman 2016-12-14T21:11:33.000069Z

@dergutemoritz ^

dergutemoritz 2016-12-14T21:16:28.000070Z

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

dergutemoritz 2016-12-14T21:25:28.000071Z

Works like a charm :thumbsup: