Skip to content

Commit ca7ece1

Browse files
committed
Add production deployment failure debugging approach documentation
1 parent aa4f664 commit ca7ece1

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

docs/debugging.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
## Production Deployment Failure Debugging Approach
2+
3+
If production deployment fails after merge:
4+
5+
1. Check GitHub Actions logs to identify failing stage
6+
2. SSH into Azure VM
7+
3. Verify Docker container status using `docker ps`
8+
4. Check container logs using `docker logs`
9+
5. Validate environment variables and port bindings
10+
6. Test application health endpoint locally inside VM
11+
7. Rollback to last working commit using `git revert`
12+
8. Rebuild Docker image and restart container
13+
9. Monitor logs after redeployment
14+
15+
This structured approach minimizes downtime and ensures faster recovery.

0 commit comments

Comments
 (0)