I've got a few shadow-cljs projects I'm working on simultaneously and I noticed when running commands like shadow-cljs watch app I get a few warnings about unavailable 9630 ports. I vaguely remember there was a way to run a single shadow-cljs build server and another command to run per-project to leverage it? Its been 4 - 5 years since I used that last so I am struggling to remember the specifics. Any idea what that was?
no that has never existed. you can run multiple builds in parrallel if they are on the same project, but not from multiple projects.
each project always has their own server and the 9630 port auto increments to use the next available port. I frequently have like 3 instances running on my machine without issue
the port is not usually something you'd need to be concerned about
the project itself can benefit from server mode, so if you launch a server (e.g. shadow-cljs watch app) then running additional commands in that project will use that server instead of launching a new JVM
Hah that explains why I couldn't find anything about it! Went through the docs again, it was the shadow-cljs server command, and you're right, it was multiple builds I was confusing the memory with
yeah problem with multiple projects using the same JVM is managing the classpath, all the relative directories, npm dependencies and so on
not something I ever felt like getting into 😛
I get that, it'd be a lot of probably hacky code