Local dev stack

Local dev stack

Run every service of a project on your machine with one command: app services as background processes, infrastructure in Docker Compose.

Before you start

  • A project with app manifests (package.json, go.mod, requirements.txt, Cargo.toml or Gemfile).
  • Docker with Compose, if the project has infrastructure services such as redis or postgres.

Set up and run

Terminal
muster setup --stack dev --scan   # or pick "Development" in the wizard
muster dev                        # deploy everything, watch health, Ctrl+C to stop

Picking Development in the wizard selects the dev stack, a 5-second health timeout and no credentials. On Ctrl+C, muster dev runs each cleanup hook and stops anything left in .muster/pids/.

How start commands are chosen

The scanner reads your project files to pick a start command and port for each app service. Edit the generated deploy.sh to change them.

FileStart command
package.jsonnpm run dev (or npm start). Port from a --port flag, else 5173 for Vite, 3000 otherwise.
go.modgo run . (or go run ./cmd/<name>), port 8080.
requirements.txt, pyproject.tomlDjango (manage.py runserver), FastAPI (uvicorn --reload), Flask (flask run --reload), else python -m http.server.
Cargo.tomlcargo run, port 8080.
Gemfilerails server on 3000, or Sinatra on 4567.

What the hooks do

HookBehaviour
deploy.shStops the previous process from its PID file, starts the command in the background, writes .muster/pids/<svc>.pid, and fails with the last 20 log lines if the process dies within 2 seconds.
health.shHealthy while the PID is alive (plus a best-effort HTTP ping on the port).
logs.shTails .muster/logs/<svc>.log.
cleanup.shStops the process and removes its PID file.
infra hooksdocker compose up -d, logs -f, and stop + rm for the service, using your compose file.

.muster/pids/ and .muster/logs/ are gitignored. If a crash leaves stale PID files, muster doctor --fix removes them.