v0.2.0-beta.46
Platform & APIAdded
- Scale-to-zero (auto-sleep). Opt-in per project: after
sleepAfterMinutes(default 30, 5–1440) with no meaningful traffic — judged from the container's rx/tx counters incontainer_metrics, with a 500KB window threshold that swallows health-check chatter and a post-deploy/wake grace period — a 5-minute sweeper stops the container (SSH on server/runner, local fallback) and marks the projectsleeping. Wake on request: generated nginx vhosts now include anerror_page 502 = @pushify_wakefallback proxying to the new public/api/v1/wake/:slugendpoint, which CAS-claims the wake (exactly one starter under concurrent visitors),docker starts the container, and serves an auto-refreshing "Waking up…" page — genuine crashes get a branded unavailable page instead of a raw nginx 502 (fallback emitted only whenAPI_BASE_URLis set). Also: authenticatedPOST /projects/:id/wakefor the dashboard, health checks skip sleeping/waking apps (auto-restart would fight the sweeper), a deploy resets sleep state, and disabling auto-sleep while asleep starts the container back up. Migration0033adds the projects columns.