Documentation
Deploys and rollbacks
Auto-deploys, deploy hooks, pre-deploy commands, zero-downtime rollouts, build filters and instant rollbacks.
What triggers a deploy
- A push to the service’s branch (auto-deploy, on by default). Choose On commit, After CI checks pass, or Off.
- Manual deploy from the dashboard (latest commit, a specific commit, or clear build cache and deploy).
- The CLI:
rebasable deploy,rebasable deploy --commit <sha>,rebasable deploy --zip. - The MCP server from your AI agent.
- A deploy hook: a secret URL you can call from CI or any tool.
- A blueprint sync or a rollback.
Deploy hooks
Copy the hook URL from Settings → Deploy hook and call it with POST:
curl -X POST "https://api.rebasable.com/v1/webhooks/deploy/srv_xxx/<secret>"
Anyone with the URL can deploy the service, so keep it secret. You can rotate it from the same screen.
Deploy lifecycle
queued → building → deploying → live, or failed / canceled. The previous live deploy becomes deactivated when the new one goes live.
- Build with your Dockerfile or automatic detection. Logs stream live.
- Security scan of dependencies, secrets and the Dockerfile (details).
- Pre-deploy command (optional), for example database migrations. If it fails, the deploy stops and the old version keeps running.
- Rollout: new instances start next to the old ones and must pass the health check within 5 minutes. Then traffic switches and old instances get
SIGTERM.
Services with a persistent disk deploy stop-then-start, because a disk can only be attached to one instance.
Build filters
In monorepos, deploy only when relevant files change. Set included paths (for example apps/api/**, packages/**) and ignored paths (for example **/*.md).
Rollbacks
Open Deploys, choose a previous deploy and click Rollback. We reuse that deploy’s image, so it takes seconds, with no rebuild. From the CLI: rebasable deploys rollback <deployId>.
When a deploy fails
The previous version keeps serving traffic. The deploy page shows which phase failed (build, pre-deploy, health check), the logs, and an AI explanation with a proposed fix.