Tarsier LabsTarsier Labs
🐡
Home
Categories
Tags
Bookmarks
About
Back to tags

rollback

0 articles

Detailed Explanation of Deployment Rollback Mechanism – Container Rollback and Database Recovery Shell Script Practice

Detailed Explanation of Deployment Rollback Mechanism – Container Rollback and Database Recovery Shell Script Practice

Based on a 151-line production-grade rollback script rollback.sh, this article explains three rollback modes in detail: container rollback (restarting the previous available image), database rollback (restoring backups with pg_restore), and the design approach for an interactive safety confirmation mechanism.

00
Operations and Deployment
Full Deployment Pipeline – Local Build + VPS Transfer + Automatic Rollback Shell Script Practice

Full Deployment Pipeline – Local Build + VPS Transfer + Automatic Rollback Shell Script Practice

This article provides a detailed explanation of a production deployment script `deploy.sh` (276 lines), covering five deployment modes, `docker save|ssh|docker load` pipeline transfer, remote database migration, health check automatic rollback, and other core designs.

00
Operations and Deployment