Fork me on GitHub
#figwheel-main
<
2018-08-27
>
lxsameer18:08:01

hey folks, is it possible to use figwheel in a standalone webserver ? I have web application which is using pedestal and I want to integrate figwheel with it

bhauman18:08:42

figwheel works perfectly well along side a server

bhauman18:08:07

@lxsameer if you scroll up you will see a conversation about this very thing 🙂

lxsameer18:08:22

cool thanks

lxsameer18:08:29

@bhauman so in conclusion, I need to serve the compiled assets through my application and run the figwheel repl too. Then I should be able to connect to figwheel repl through my webserver am I right ?

bhauman18:08:41

@lxsameer the first part is right. But figwheel will still run its own server, and the web application will connect back to the figwheel server’s websocket to provide REPL support

bhauman18:08:11

and that will be automatic

lxsameer18:08:49

ok and the CORS headers set by the figwheel server. should i change any configuration to let the application connect to a different address for websocket ?

bhauman18:08:11

nothing is needed

dnolen19:08:30

hrm is there anyway to get Figwheel to print the entire exception?

dnolen19:08:35

I’m getting a very ugly one

dnolen19:08:39

Compile Exception: clojure.lang.Cons cannot be cast to java.lang.CharSequence

dnolen19:08:48

no other information

bhauman19:08:30

@dnolen are you on the latest release 0.1.8

bhauman19:08:41

I put some work into this

dnolen19:08:48

oh I’m not

bhauman19:08:50

and I think I fixed that particular bug

dnolen19:08:51

bumping, thanks

bhauman19:08:29

and if you ever need more info :log-level :all

dnolen19:08:40

fig wheel map option?

dnolen19:08:26

👍:skin-tone-4:

pesterhazy19:08:29

I saw the issue in 0.1.7 and for me it's fixed in 0.1.8

bhauman19:08:09

@pesterhazy are you the person who told me he uses devcards alongside the normal build?

pesterhazy19:08:43

@bhauman hmm... I use devcards with figwheel.main, but I can't remember if I told you that

bhauman19:08:38

did you always use a background build?

pesterhazy19:08:50

no, I didn't know about background builds

bhauman19:08:19

so you were doing an extra main before there was an extra mains feature?

pesterhazy19:08:31

I was using it before extra mains for sure, but I just used the main build

pesterhazy19:08:43

currently devcards is the main ui (it's a playground app)

pesterhazy19:08:23

I'll definitely check out extra mains once I do more work on it

bhauman19:08:38

someone inspired me to do the extra mains thing and I thought it was you, the idea being that they used the main build to provide their app and devcards