This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-12-08
Channels
- # adventofcode (49)
- # announcements (2)
- # architecture (4)
- # babashka (48)
- # babashka-sci-dev (4)
- # beginners (7)
- # biff (1)
- # calva (14)
- # cider (6)
- # clj-kondo (1)
- # clj-yaml (1)
- # cljsrn (3)
- # clojure (14)
- # clojure-art (12)
- # clojure-europe (62)
- # clojure-nl (1)
- # clojure-norway (35)
- # clojure-uk (5)
- # clojurescript (18)
- # clr (4)
- # community-development (9)
- # conjure (2)
- # core-async (3)
- # cursive (2)
- # datomic (2)
- # emacs (8)
- # events (3)
- # graalvm (1)
- # helix (6)
- # holy-lambda (3)
- # jobs (1)
- # off-topic (16)
- # polylith (30)
- # practicalli (11)
- # reitit (5)
- # shadow-cljs (14)
- # slack-help (10)
- # xtdb (6)
Hi guys. Is there a way to detect if a shadow-cljs
server instance is running before starting another one so that if it's running, I won't start another one but just hook up to this one.
how are you starting it? all the regular commands already detect and connect on their own?
I am starting it from a Phoenix watcher. So when the Phoenix server starts, it automatically starts. The issue is whenever I kill the Phoenix server, the shadow-cljs
server does not die, hence, when the Phoenix server starts again and tries to spin up shadow-cljs
, it returns an exception about a server that's up.
if its through the regular shadow-cljs
command it should already connect just fine. unless phoenix killed its runtime files in the .shadow-cljs
dir
maybe you should try a separate tool to run the phoenix server and shadow-cljs in parallel. if phoenix isn't capable of killing the processes it started that doesn't seem great
I use shadow-cljs watch app
to start the server.
What is its runtime file in .shadow-cljs
, let me confirm that.
there are files in that directory that the command will check to see if a server is running
also caches and stuff. so the entire dir should be left alone and never be touched by anything but shadow-cljs
Alright, thanks.
I'll just try out some things here and see how it goes.