figwheel-main

figwheel-main http://figwheel.org
2020-10-25T15:02:42.078700Z

Hi all, I am building an app that serves a reagent-based client, the app must run as a docker container even during development of the client so I am trying to enable a figwheel workflow while the client is served from my docker container but so far I haven’t been able to set this upp correctly, any idea on how to accomplish this?

dominicm 2020-10-25T15:54:12.079500Z

@amorokh what have you tried, what didn't work? This should just work pretty much :)

2020-10-25T17:23:33.084500Z

@dominicm sorry, I really didn’t state my problem correctly.. besides running in a docker container I also need to package the entire thing in an uberjar so what I am trying to do is to “compile” the client with figwheel to produce output that can be packaged into the jar-file and then served (the reason for the uberjar is a restricted runtime env where I am not able to connect to internet or to write to the filesystem), so I guess that my real problem is: how do I produce a figwheel-enabled client that can be packaged into a jar-file? please let me know if I’m thinking about this the wrong way..

dominicm 2020-10-25T18:42:39.085200Z

@amorokh how do you edit the files if they're in the uberjar?

dominicm 2020-10-26T08:44:57.085500Z

You mean by eval'ing?

2020-10-26T10:17:26.085700Z

yes, I guess

dominicm 2020-10-26T13:05:10.085900Z

Figwheel doesn't really help with that

dominicm 2020-10-26T13:05:22.086100Z

You probably just want a basic clojurescript browser repl

dominicm 2020-10-26T13:05:39.086300Z

Make sure you don't use advanced compilation

2020-10-26T13:31:44.086500Z

ok, thanks

2020-10-25T21:52:08.085300Z

good question 🙂 I thought that I could build the client with figwheel support and connect the fighwheel repl from my dev machine and then just edit the files locally and update the client in “memory” in the container, I might be misunderstanding things