dev-env

Installation
SKILL.md

Running the Karakeep dev env in a worktree

Many worktrees run on this machine at the same time, often each with its own dev server. pnpm dev:worktree (scripts/dev-worktree.sh) handles the resulting conflicts. Use it rather than pnpm web / pnpm workers.

1. Start it

Run from the worktree root, in the background (it doesn't return until stopped):

# run_in_background: true
pnpm dev:worktree >| $TMPDIR/karakeep-$(basename $PWD)-dev.out 2>&1

Then wait for it to report readiness:

for i in $(seq 1 150); do grep -qE "is ready|exited|didn't become" $TMPDIR/karakeep-$(basename $PWD)-dev.out && break; sleep 2; done; tail -20 $TMPDIR/karakeep-$(basename $PWD)-dev.out
Installs
14
GitHub Stars
29.7K
First Seen
14 days ago