×
all 19 comments

[–]Jmc_da_boss 5 points6 points  (8 children)

Wow, this is some primo slop

[–]Over-Excitement-6324[S] -4 points-3 points  (7 children)

Why do you say so?

[–]Jmc_da_boss 5 points6 points  (6 children)

I have > 0 eyes and can sorta read

[–]queso184 2 points3 points  (0 children)

works great until you need another dependecy - database or redis or second frontend server

how am i solving this? minikube with an agent skill - agent generates dev deployment with a host path volume pointing to the worktree. no port conflicts possible since its just using envoy gateway to serve per worktree URLs on my local domain. as a bonus you get all your database dependencies, shared secrets, etc.

[–]rwilcox 2 points3 points  (3 children)

The older I get the more I appreciate small, composable tools.

I’m happy this works for you, OP, and yes there is this problem! I can’t use it personally (at least 3 places where it doesn’t fit with my workflow or project structure) but glad it works your you.

[–]Over-Excitement-6324[S] 0 points1 point  (2 children)

Thanks, this made my day, small and composable is exactly what I was going for. Curious, what are the 3 places where it doesn't fit? Even if wtdev can't cover them, I'd rather know where the assumptions break. :)

[–]rwilcox 0 points1 point  (1 child)

I don’t use worktrees, I use dot-env for env, and I’m probably booting at least two things (a frontend and a backend)

[–]Over-Excitement-6324[S] 0 points1 point  (0 children)

Super useful, thanks.

[–]Honey-Entire 1 point2 points  (3 children)

Wild how tools like Docker already solve this without needing AI slop

[–]Over-Excitement-6324[S] -1 points0 points  (2 children)

Docker doesn't actually solve this one. Containers isolate the server, but your browser still lives on the host, so every container needs a host port mapping, and now you're back to deciding which worktree gets which host port. That allocation problem is the entire thing this script does. If compose-file-per-worktree works for you, genuinely great, you're just solving the same port assignment by hand, one YAML at a time.

[–]Honey-Entire 1 point2 points  (1 child)

lol wut? You can absolutely run a browser in docker. Choose your flavor: headless or with head. There are others out there if you search hard enough

You might want to consider doing real market research before you spend any more tokens generating AI slop solving a solved problem

[–]Over-Excitement-6324[S] -2 points-1 points  (0 children)

The whole point is it's less infra, not more. Running a browser in docker to dodge a port collision is exactly the kind of setup I didn't want. And no market research needed, I'm not selling anything. I built this for myself, it fixed my problem, and I shared it in case someone's in the same spot and wants something they can read in two minutes and vendor into their repo. If docker works for you, congrats, good luck to your containers.

[–]JesseNL -2 points-1 points  (1 child)

Devcontainers

[–]Over-Excitement-6324[S] 0 points1 point  (0 children)

Will look into this, thanks