How frequently do you restart shadow-cljs watching server?

For :socket-repl, I don’t use it often at current. Just don’t be really random when I want to find the port.

target/shadow-cljs/*.port files , … you can always find the current port from those files.

It’s not hardcoded in my editor. I think it might be nice solution, but my editor doesn’t look up ports in that way yet. My editor starts up in 1s while shadow-cljs is still starting. Besides, I’m not sure about the relative path.

You can also add :http-port 0 to use a random port

I think Webpack’s strategy is fine in my case: try 8080, if not available then 8081, print logs of 8081, and http://localhost:8081 is already in my history. It’s convenient. I restart watching server only when I found ports conflicted.

you can then find via the http://localhost:9630 interface.

Which port defaults to 9630? I constantly got errors of port is already used because sometimes I have to start 3 watching servers in the meantime. I don’t know what it’s used… but just don’t want conflicts.


trying to show how frequently I switch among projects…