The Deploy That Said It Worked
deploy-release v2 printed 'deployed v2', the log agrees, and production is still serving v1. Find out why, get v2 live through the release layout, and keep v1 ready to roll back to.
- Intermediate
- 20 min
- Challenge
- Deployment
- nginx
- Timed
Overview
Friday afternoon. You ran deploy-release v2. It printed deployed v2, /srv/app/deploy.log agrees — and every browser still shows v1. Get release v2 genuinely serving on port 80, with /srv/app/current pointing at it the way the release layout intends, and leave v1 intact so a rollback stays one command away.
The script, the symlink and nginx all have something to say if you look closely.
What done looks like
- Get release v2 serving on port 80
- Point /srv/app/current at the v2 release
- Keep v1 intact for rollback
Before you start
- High-Performance Nginx Reverse Proxies first, or equivalent Linux/nginx familiarity
- Timed challenge: failed checks return no hints