← Back to blog

14 Dec 2025

Zero‑downtime deploys in Magento: a realistic checklist

Zero downtime exists—when done properly.

Minimum checklist:
- `setup:di:compile` outside production.
- `setup:static-content:deploy` in build.
- Atomic symlink switch.
- Cache warmup post‑deploy.

Atomic step example:
```
ln -sfn /var/www/releases/2026_01_31 /var/www/current
```

If you do this wrong, checkout breaks first.

Extra:
- Clear cache only after the symlink swap.
- Validate `env.php` permissions.
- Use health checks for fast rollback.

The difference between “successful deploy” and “incident” is usually two minutes of warmup.

Comments

I am not a robot
reCAPTCHA Privacy · Terms

Related

Recommended reads

Magento 2 at peak traffic: how to avoid lock storms during reindex

Read

Magento 2: how to read the checkout profiler without getting lost

Read

Redis in Magento: 5 common mistakes that break performance

Read