From 73353c2086d4e485b55df9eda40f6a28a33a0ab0 Mon Sep 17 00:00:00 2001 From: Cal Corum Date: Sun, 15 Feb 2026 19:05:16 -0600 Subject: [PATCH] Add deployment details to CLAUDE.md (container name, logs, CI/CD) Align production environment section with Major Domo's format: container name, remote log command, co-hosted services, tea PR workflow. Co-Authored-By: Claude Opus 4.6 --- CLAUDE.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/CLAUDE.md b/CLAUDE.md index 56735b4..d4f1c3e 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -24,6 +24,26 @@ pip install -r requirements.txt # Install dependencies - Multiple cardsets (seasons) with different priorities for gameplay - Use factory data in testing as often as possible +## Deployment + +### Production Environment +- **Host**: `ssh sba-bots` (10.10.0.88, alias `pd-bots`) +- **Path**: `/home/cal/container-data/paper-dynasty` +- **Bot container**: `paper-dynasty_discord-app_1` +- **Logs**: `ssh sba-bots "docker logs --since 1h paper-dynasty_discord-app_1"` +- **Other services on same host**: `paper-dynasty_adminer_1`, `paper-dynasty_db_1`, `sba-website_sba-web_1`, `sba-ghost_sba-ghost_1` +- **Image**: `manticorum67/paper-dynasty-discordapp` (Docker Hub) +- **Version file**: `VERSION` (current: 1.9.2) — bump before merge to `main` +- **Health**: Port 8080 — `/health`, `/ready`, `/metrics`, `/diagnostics` +- **Env vars**: `BOT_TOKEN`, `GUILD_ID`, `API_TOKEN`, `DATABASE` (Dev/Prod), `LOG_LEVEL`, `TZ=America/Chicago` + +### CI/CD +Builds and deploys are handled by Gitea Actions. Create a PR to `main` using `tea`: +```bash +tea pulls create --repo cal/paper-dynasty --head --base main --title "title" --description "description" +``` +Gitea validates the version, builds the Docker image, and deploys on merge. + ## Development Notes - Connect to proper docker socket when running tests