This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-09-23
Channels
- # announcements (8)
- # babashka (12)
- # babashka-sci-dev (6)
- # beginners (62)
- # biff (5)
- # calva (4)
- # cider (2)
- # clj-commons (8)
- # clj-kondo (17)
- # clj-yaml (40)
- # clojars (3)
- # clojure (117)
- # clojure-europe (122)
- # clojure-nl (5)
- # clojure-norway (20)
- # clojurescript (10)
- # consulting (1)
- # datomic (65)
- # events (15)
- # figwheel (1)
- # fulcro (4)
- # lsp (15)
- # mount (15)
- # music (1)
- # off-topic (53)
- # polylith (12)
- # releases (3)
- # shadow-cljs (13)
- # sql (1)
- # test-check (8)
- # xtdb (31)
Hi there 👋
We set up a reverse proxy for development and I added an entry to my hostfile to develop on a "real", non-localhost URL and proxy /api/
path to a deployed server.
Unfortunately hot-reloading ist not working and I noticed that the websocket connection to localhost:9630
is not established.
Is there a way to enable it?
(as an aside: while researching in the documentation I found the reverse-proxy ability of shadow itself 😄 still wondering if it's possible to have hot-reload with my initial setup)
if you use a different server that doesn't use localhost
then you might need to set https://shadow-cljs.github.io/docs/UsersGuide.html#proxy-support
the http server you use is not relevant to hot-reloading since it is all done over the websocket to 9630
so a) you configure it where to connect to or b) have your proxy server also proxy the websocket connection
Thanks, :devtools {:use-document-host false}
worked :thumbsup:
> the browser console should tell you whats up? It didn't really tell me that much: But that's my first Clojure(-script) work, so that doesn't mean much 😄
well what I meant that it should tell you if it fails to connect, and what it was trying to connect to
That it didn't do :thinking_face: