Rafael Pereira Alonso
Computer Science student at the Federal University of São Carlos - Sorocaba and Ruby On Rails Teacher
How to run your project in parallel
How else can we run things in parallel?
Advantages:
Disadvantages:
Advantages:
Disadvantages:
Advantages:
Disadvantages:
Because that's what AIs are for, amiright?
.gitignored files are not moved over to the worktree once created. That includes some important ones:
Symlink them all during setup, edit them (if needed) in the main session
Changes made in one worktree will affect the environment shared by all. Rails, Vite, AnyCable... that can cause conflicting behaviors and/or raise errors
For each worktree branch, define a set of ports to be used so servers are isolated. Ports are defined based on JIRA story numbers, and conflicts are resolved automatically by checking if port is already in use by other worktrees.
Some conflicts are a bit trickier to solve than simply assigning ports:
Those are only issues when specific updates to the codebase are needed. We can create new DBs and new node_modules/vendors instead of symlinking/sharing them
We need to:
All that before starting the actual work
[--isolate-db] [--isolate-gems] [--isolate-npm] [--isolate-all]
PR #999
By Rafael Pereira Alonso
Computer Science student at the Federal University of São Carlos - Sorocaba and Ruby On Rails Teacher