Skip to content

Give each worktree its own port, database file and packages - #72

Merged
Param-Harrison merged 1 commit into
mainfrom
worktree-hooks
Oct 8, 2026
Merged

Param-Harrison merged 1 commit into
mainfrom
worktree-hooks

Conversation

@Param-Harrison

Copy link
Copy Markdown
Contributor

Adds .config/wt.toml, the worktrunk hooks the Execution Harness lightning lesson uses, so the room can clone this repo and run two worktrees side by side.

  • pre-start installs packages, then writes PORT (from hash_port) and SPLITBILL_DB (from sanitize_db) to .env, which Bun loads.
  • pre-remove deletes that branch's database file.
  • .env is ignored so wt remove does not refuse an untracked file.

Checked: wt switch --create probe gave port 18321 and splitbill_probe_tty.sqlite; bun src/server.ts listened there and /api/groups answered.

🤖 Generated with Claude Code

…trunk hooks

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Param-Harrison
Param-Harrison merged commit 394afb6 into main Oct 8, 2026
1 check passed
@Param-Harrison
Param-Harrison deleted the worktree-hooks branch October 8, 2026 19:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant