cachix / devenv

Fast, Declarative, Reproducible, and Composable Developer Environments
https://devenv.sh
Apache License 2.0
4.04k stars 303 forks source link

`devenv up` should attach to an existing process-compose server, if one exists #1236

Open austinried opened 3 months ago

austinried commented 3 months ago

I'm not sure if this behavior is desired or not but I found it confusing that I could run devenv up multiple times and start multiple process-compose servers. If I run devenv up once and lose the shell for some reason, I now have a phantom process-compose server running in the background that I don't know how to interact with.

I think it would be smoother if a second devenv up/devenv processes up checked to see if there was an existing process-compose server already and attached to it instead. It seems that devenv processes attach exists, but it only works if you started with up -d first.

domenkozar commented 3 months ago

Yeah, that's a good idea!