- AGENTS.md: canonical project entry point (Quick Nav, pipeline, constraints) - docs/: complete docs tree — architecture, API spec, DB schema, infra, runbook, requirements, tech stack, principles, reference ADRs, guides, tasks backlog, testing strategy - tests/README.md: test commands, structure, known gaps - README.md / CLAUDE.md / DEPLOYMENT.md: updated with canonical doc links - .archive/: backup of pre-documentation-pipeline originals - backend/uv.lock: uv dependency lockfile - Delete committed __pycache__ .pyc files (should have been gitignored) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
577 lines
12 KiB
Markdown
577 lines
12 KiB
Markdown
# Accessible Video Platform - Production Deployment Guide
|
||
|
||
> **Canonical source moved:** See [docs/project/runbook.md](docs/project/runbook.md) for the current deployment runbook and [docs/project/infrastructure.md](docs/project/infrastructure.md) for the infrastructure inventory. This file is kept for historical reference.
|
||
|
||
|
||
## =<3D> Table of Contents
|
||
- [Overview](#overview)
|
||
- [Server Requirements](#server-requirements)
|
||
- [Pre-Deployment Checklist](#pre-deployment-checklist)
|
||
- [Initial Setup](#initial-setup)
|
||
- [Deployment Steps](#deployment-steps)
|
||
- [Post-Deployment Verification](#post-deployment-verification)
|
||
- [Maintenance & Operations](#maintenance--operations)
|
||
- [Troubleshooting](#troubleshooting)
|
||
|
||
---
|
||
|
||
## <<3C> Overview
|
||
|
||
This guide covers deploying the Accessible Video Processing Platform to a production server at `ai-sandbox.oliver.solutions`.
|
||
|
||
**Architecture:**
|
||
- **Frontend**: React SPA served by Apache at `/video-accessibility`
|
||
- **Backend API**: Docker container proxied by Apache at `/video-accessibility-back`
|
||
- **Worker**: Docker container for Celery background processing
|
||
- **MongoDB**: Docker container for database
|
||
- **Redis**: Docker container for queue/cache
|
||
|
||
**Server Details:**
|
||
- **Host**: ai-sandbox.oliver.solutions (GCP VM)
|
||
- **Resources**: 32GB RAM, 8 CPU cores
|
||
- **OS**: Linux with Apache 2.4+
|
||
- **SSL**: Wildcard certificate configured
|
||
|
||
---
|
||
|
||
## =<3D> Server Requirements
|
||
|
||
### Software Requirements
|
||
- Docker 20.10+
|
||
- Docker Compose 1.29+
|
||
- Apache 2.4+ with modules:
|
||
- `mod_rewrite`
|
||
- `mod_proxy`
|
||
- `mod_proxy_http`
|
||
- `mod_proxy_wstunnel`
|
||
- `mod_headers`
|
||
- Node.js 20+ and npm (for building frontend)
|
||
- Git (for code deployment)
|
||
|
||
### Apache Modules Setup
|
||
```bash
|
||
sudo a2enmod rewrite proxy proxy_http proxy_wstunnel headers
|
||
sudo systemctl restart apache2
|
||
```
|
||
|
||
### Directory Structure
|
||
```
|
||
/opt/accessible-video/
|
||
|