Repository navigation
chore: add Paseo worktree setup and workspace scripts - #21
Merged
Merged
Conversation
Installs the api and web dependencies for new worktrees and exposes test, lint, build, migrate, and seed scripts plus the api and web dev services. The dev scripts read DATABASE_URL, REDIS_URL, and SECRET_KEY from an untracked .env.paseo in the source checkout and keep MEDIA_DIR inside the worktree, so they never reach the deployed database or the compose media tree.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
paseo.jsonso Paseo worktrees of this repo get a dependency setup step and named scripts instead of hand-run commands.worktree.setupinstalls the api and web dependencies for a new worktree (uv sync --frozen --extra dev,npm ci).test-api,test-web,lint,build,migrate,seedexpose the common checks as workspace scripts, all pinned with--frozen/ciso a worktree cannot drift from the lockfiles.apiandwebrun as Paseo services onPASEO_PORTwith per-worktree proxy hostnames;webwarns when the api port it points at has nothing listening.DATABASE_URL,REDIS_URL,SECRET_KEYand the admin seed values from an untracked.env.paseoin the source checkout (PASEO_SOURCE_CHECKOUT_PATH), and fails fast with a message when one is missing.MEDIA_DIRdefaults inside the worktree, so a worktree never writes into the deployed compose media tree and never points at the production database.Dev tooling only: no application code, no dependency change, no workflow change.
docker-build.ymlstill builds only on aVERSIONchange onmain.