back

by apitman·17d ago·view on hn ↗
> The way to solve for this is to have them work on two different worktrees with separate environments, ports

What are you using for the environment part? Containers?

1 comments
Yes! The project I'm working most on has a dev environment that runs a compose witin two scripts: a setup.sh and a run.sh script.

setup.sh figures out which ports are available and changes .env files accordingly. Run.sh runs the actual setup.