Local dev setup with mise and pitchfork#131
Open
davidharting wants to merge 3 commits into
Open
Conversation
- Add .mise.toml pinning Node 20 and Postgres 17 for local dev - Add task dev:db:start: spins up an ephemeral Postgres 17 container with laravel and laravel_test databases, no password, no volume mount. Ctrl+C stops and auto-removes via --rm. - Point phpunit.xml DB_DATABASE at laravel_test PHP is managed separately via php.new rather than mise. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Replaces the tmux-based bin/dev launcher with pitchfork.toml, which
manages all four dev services (database, php, queue, vite) as supervised
daemons with dependency ordering and automatic retry.
- pitchfork.toml: defines database, php, queue, vite daemons
- database ready check via pg_isready (explicit IPv4) to avoid macOS
localhost/IPv6 mismatch
- php and vite use ready_output to avoid the same IPv4/IPv6 issue
- queue has retry=true so it recovers if DB isn't ready on first attempt
- php and queue depend on database
- Taskfile dev:db:start: run migrate:fresh --seed before docker attach
so the DB is fully seeded before dependents start; also add docker rm -f
cleanup so re-runs don't conflict on container name
Usage: pitchfork start --all / pitchfork tui / pitchfork stop --all
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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.
What changed
Adds mise for Node/Postgres version management and pitchfork for local dev daemon orchestration, replacing the need to manually start services in separate terminals.
.mise.toml: pins Node 20 and Postgres 17 (PHP managed separately via php.new)pitchfork.toml: definesdatabase,php,queue, andvitedaemons with dependency ordering and retryTaskfile.yml:dev:db:startnow runsmigrate:fresh --seedbefore attaching, cleans up stale containers on re-runWhy
Running the full local dev stack previously required 4 separate terminals. With pitchfork,
pitchfork start --allstarts everything in the right order — database first, then dependent services — with automatic retry if a service fails on first attempt.Generated by Claude Code