dev-server-procfile.md
59 lines · skills/ce-polish/references/dev-server-procfile.md at 3449230
Most marks come from matching words in the file, so treat them as pointers.
Procfile / Overmind dev-server recipe (auto-detect fallback)
Loaded when detect-project-type.sh returns procfile and the startup tuple still lacks a command. Rails apps with bin/dev take precedence over the bare Procfile path (see dev-server-rails.md).
Signature
ProcfileorProcfile.devexists at the repo rootbin/devis not present (if it is, use the Rails recipe)
Start command
Prefer overmind when available — it handles socket files, supports hot-restart per process, and is the community default for multi-process dev:
overmind start -f Procfile.devFallback to foreman when overmind is not installed:
foreman start -f Procfile.devIf both are missing, prompt the user for the start command rather than guessing.
Raw lines 10 to 25Port
Default: 3000. Procfile-based projects list their processes in Procfile.dev, so the authoritative port comes from the web: line:
web: bundle exec puma -p 3000 -C config/puma.rb
worker: bundle exec sidekiqParse the web: line for -p <n> or --port <n>. If neither is present, fall through to the cascade in references/dev-server-detection.md.
Stub generation
{
"version": "0.2.0",
"configurations": [
{
"name": "Overmind dev",
"runtimeExecutable": "overmind",
"runtimeArgs": ["start", "-f", "Procfile.dev"],
"port": 3000
}
]
}Substitute foreman if overmind is unavailable on the user's machine — the stub represents what the user will run, not a canonical recipe.
Common gotchas
- Socket files:
overmindwrites a socket to.overmind.sockby default. If another instance or a stale socket prevents startup, report the log evidence and let the user decide whether to reuse that process or correct the start configuration. TheOVERMIND_SOCKETenv var can redirect the socket to a per-run path when the project already uses that convention. - Procfile vs Procfile.dev: production and development Procfiles often differ. Always prefer
Procfile.devfor polish. - Multiple web processes: some Procfiles split web traffic across multiple processes (API + frontend). Polish can only open one URL — users with multi-web setups should author
.claude/launch.jsonexplicitly to select which process is "the dev server" for polish.