Skip to content

Rollbacks

Every successful deployment is stored as an immutable snapshot. If a new deploy causes issues, you can roll back to any of the last 20 deployments with a single click, no rebuild required. StackBlaze simply re-deploys the previously built Docker image via a rolling update.

Rollback Re-roll a stored image · no rebuild d0c6z09 chore: update deps 2 days ago c1d7a10 feat: user dashboard v2 1 day ago b2e8b11 fix: resolve auth bug pick this revision a3f9c12 feat: add rate limiting LIVE Rollback Same image tag rolling update · 15-30s Migrations are not undone schema changes stay · handle separately last 20 images retained · tags never overwritten · no rebuild

Rollbacks complete in 15–30 seconds because the image is already in the internal registry. There is no npm CLI — roll back from the dashboard or the deployments API.

Recent deployments (last 20 shown):

Commit Message When Status
a3f9c12 feat: add rate limiting 2 hours ago LIVE
b2e8b11 fix: resolve auth bug 5 hours ago ROLLBACK
c1d7a10 feat: user dashboard v2 1 day ago
d0c6z09 chore: update deps 2 days ago
terminal
export STACKBLAZE_TOKEN=kbr_pat_
# revisionId is the previous successful deployment
curl -sS -X POST \
https://api.stackblaze.cloud/api/deployments/rollback/acme-app/production/api/REVISION_ID \
-H "Authorization: Bearer $STACKBLAZE_TOKEN"
  1. Open the Deployments tab

    Navigate to Service → Deployments. You will see a list of the last 20 successful deployments, ordered newest first. Each entry shows the commit hash, commit message, deployer, timestamp, and duration.

  2. Select a previous deployment

    Click on the deployment you want to roll back to. A detail panel slides open showing build logs, environment at time of deploy, and the exact Docker image tag. Verify this is the version you want before proceeding.

  3. Click Rollback

    Click the “Rollback to this version” button. StackBlaze immediately begins a rolling update using the stored Docker image, no rebuild is required. The rollback typically completes in 15–30 seconds.

  4. Verify the rollback

    Watch the Deployments tab as the rolling update completes. Once health checks pass on all replicas, the rolled-back version receives 100% of traffic. The deployment that caused the issue is retained in history for post-mortem analysis.