borkdude 2020-07-23T11:34:16.111400Z

I don't understand the option. I have put :connect-url "<ws://>" in my figwheel-main.edn but it keeps connecting to localhost:9500 which is not where the figwheel server is running

borkdude 2020-07-23T11:41:26.112Z

hah, now it started working all of a sudden.. after upgrading to 0.2.11, weird

borkdude 2020-07-23T11:43:18.112500Z

so now I kinda wish I could set that IP using some environment variable because this IP will be different for every of my colleagues

borkdude 2020-07-23T11:55:33.113400Z

where can I configure the JS/CLJS function that should be called after reloading sources?

borkdude 2020-07-23T11:59:14.113900Z

Found it here: I expected this to be part of the figwheel-main.edn file without having to change my source code.

borkdude 2020-07-23T13:05:43.114500Z

I guess figwheel doesn't come with any CSS/less magic other than reloading the CSS right?

bhauman 2020-07-23T15:44:08.114800Z

@borkdude yes that’s right

borkdude 2020-07-23T15:50:01.115400Z

ok, that's fine. I solved that problem. My only remaining thing is be able to set :connect-url dynamically, based on some env variable for example

borkdude 2020-07-23T15:51:03.115700Z

for anyone curious, I'm using this for less:

:less/dev {:extra-deps
                      {deraen/less4clj {:mvn/version "0.7.4"}}
                      :main-opts ["-m" "less4clj.main"
                                  "--source-paths" "resources/public/css" "--target-path" "target/public/css"]}

borkdude 2020-07-23T15:53:53.116700Z

The docs for :connect-url aren't entirely clear to me. It speaks about "server side" and "client side". but :connect-url is only used from the browser to connect to the websocket server, right? so why all these options for "server side"?

borkdude 2020-07-23T16:01:42.117200Z

I think I just need :connect-url "ws://[[client-hostname]]:9500/figwheel-connect" - seems to work for me

bhauman 2020-07-23T17:24:54.117900Z

@borkdude cool I’m glad you found something that worked

bhauman 2020-07-23T17:26:49.119100Z

@borkdude the server-hostname stuff is helpful if you are listening on a certain eth address and that happens to be address that your client is using

bhauman 2020-07-23T17:31:33.119700Z

really glad you are taking the new stuff for a spin

borkdude 2020-07-23T17:48:04.120400Z

is this new? I haven't been following for a while 🙂 I'm porting the CLJS and less build from boot to deps.edn

bhauman 2020-07-23T17:48:23.121Z

oh this isn’t new

bhauman 2020-07-23T17:48:57.121800Z

I thought you might be trying out the new :target :bundle support for npm deps

bhauman 2020-07-23T17:49:19.122400Z

there is also HTTPS support

borkdude 2020-07-23T17:49:24.122600Z

I might, but probably not for this project because my team lead is not fond of npm...

borkdude 2020-07-23T17:50:05.122800Z

just good old foreign-libs and cljsjs

borkdude 2020-07-23T17:50:56.123400Z

it's good to have support for it though. I'm glad all is working now together with our old boot stuff, hybrid

bhauman 2020-07-23T17:51:50.124Z

well that stuff works and works well enough for sure!