Deployment (Azure VM)
The production deployment workflow is scripted in deploy-rebuild.sh.
Deploy commands
Section titled “Deploy commands”# from repo root./deploy-rebuild.sh./deploy-rebuild.sh --quick./deploy-rebuild.sh --restart./deploy-rebuild.sh --status./deploy-rebuild.sh --logsWhat the script does (high level)
Section titled “What the script does (high level)”- SSH to the VM.
git reset --hard origin/mainfor bothammm-appand (if present) the siblingammmrepo.- Install backend dependencies and apply v2 DB migrations (if
DATABASE_URLis configured). - Build the web frontend.
- Restart systemd services:
ammm-web,ammm-api,ammm-worker.
TODO: Document how the VM sets production env vars (systemd
EnvironmentFile=).