Skip to content

Deployment (Azure VM)

The production deployment workflow is scripted in deploy-rebuild.sh.

Terminal window
# from repo root
./deploy-rebuild.sh
./deploy-rebuild.sh --quick
./deploy-rebuild.sh --restart
./deploy-rebuild.sh --status
./deploy-rebuild.sh --logs
  1. SSH to the VM.
  2. git reset --hard origin/main for both ammm-app and (if present) the sibling ammm repo.
  3. Install backend dependencies and apply v2 DB migrations (if DATABASE_URL is configured).
  4. Build the web frontend.
  5. Restart systemd services: ammm-web, ammm-api, ammm-worker.

TODO: Document how the VM sets production env vars (systemd EnvironmentFile=).