DarthSim / overmind

Process manager for Procfile-based applications and tmux
MIT License
2.89k stars 82 forks source link

Looking for ideas on how to integrate overmind with git worktrees #187

Open madhermit opened 1 month ago

madhermit commented 1 month ago

I currently use overmind to manage my frontend and api using a Procfile.dev that points to each dir using a env var. I'm trying to use a git worktrees workflow, which basically means different branches reside in different directories.

I originally wrote a shell script that basically gets the path of worktree dir I'm currently in, updates an env var with that path and then issues a overmind restart api. However I'm finding that the restart command doesn't pull in the updated env var.

Aside from fully stopping and starting overmind each time, I'm looking for some ideas on how best to achieve this. As an aside, anyone who currently uses git worktrees, what does your workflow look like?

Thanks!