bhauman / figwheel-main

Figwheel Main provides tooling for developing ClojureScript applications
https://figwheel.org
Eclipse Public License 1.0
640 stars 93 forks source link

Embedding figwheel into an existing process #220

Open CmdrDats opened 4 years ago

CmdrDats commented 4 years ago

I've got a fairly complex setup on my side (involving reverse proxy from vm to host, dynamic web port assignment, et al) - I'm already firing up httpkit, a repl, and various other bits and pieces and I need to be able to fire up figwheel to compile my clojurescript from inside the process and serve up hot-reloaded code.

ie - I need to route a custom websocket url from httpkit in my existing server to figwheel and trigger a build that has a dynamically created URL for the websocket. If that makes any sense?

Is this something that can be wrangled with the existing code, or do I need to try fork the project and tweak stuff around a bit?

jleonard-r7 commented 1 year ago

What did you end up doing?

CmdrDats commented 1 year ago

Ended up switching the shadow-cljs (for unrelated reasons) and setup nginx reverse proxy from the vm for the ws ports 😀 similar approach should work for figwheel.

jleonard-r7 commented 1 year ago

Ah yea a bit of nginx will solve almost anything. 🤣