From 284cc852c23930aff7c90c75482f0e32247f4614 Mon Sep 17 00:00:00 2001 From: Ryan Westfall Date: Mon, 27 Jul 2026 10:30:07 -0500 Subject: [PATCH] Enable beta host_apps for chat_backend + chat_web_app (#7). Register beta ports 8013/8083 on adama, roslin, and ai-server-4080, and update IMPLEMENTATION.md apps/ports/NPM tables for beta + prod. --- IMPLEMENTATION.md | 16 ++++++++-------- inventory/host_vars/adama.yml | 4 ++-- inventory/host_vars/ai-server-4080.yml | 4 ++-- inventory/host_vars/roslin.yml | 4 ++-- 4 files changed, 14 insertions(+), 14 deletions(-) diff --git a/IMPLEMENTATION.md b/IMPLEMENTATION.md index f8ff3a0..67fddfa 100644 --- a/IMPLEMENTATION.md +++ b/IMPLEMENTATION.md @@ -193,8 +193,8 @@ After Docker install, re-SSH so the `docker` group membership takes effect. | `dta_service` | django (docker) | adama + roslin + ai-server-4080 | beta + prod | active/active behind NPM | | `dta_webapp` | node/vite static | adama + roslin (+ ai-server-4080) | beta + prod | active/active; built to `/var/www/.app.ditchtheagent/html`, served by web-static nginx | | `scha` | django (docker) | adama + roslin + ai-server-4080 | prod | active/active behind NPM; beta port reserved | -| `chat_web_app` | node-static (CRA) | adama + roslin + ai-server-4080 | prod | active/active; built to `/var/www/.chat.aimloperations/html`, served by web-static nginx; beta port reserved | -| `chat_backend` | django (docker) | adama + roslin + ai-server-4080 | prod | active/active behind NPM; Ollama via `OLLAMA_BASE_URL=http://10.0.0.128:11434`; beta port reserved | +| `chat_web_app` | node-static (CRA) | adama + roslin + ai-server-4080 | beta + prod | active/active; built to `/var/www/.chat.aimloperations/html`, served by web-static nginx | +| `chat_backend` | django (docker) | adama + roslin + ai-server-4080 | beta + prod | active/active behind NPM; Ollama via `OLLAMA_BASE_URL=http://10.0.0.128:11434` | Django apps use a **shared external Postgres** (via `DATABASE_URL` in each host's env file) so active/active replicas share one database. Beta and prod never share @@ -218,9 +218,9 @@ future beta replica. | company_site | 8010 (*not deployed*) | 8000 | adama, roslin, ai-server-4080 | | dta_service | 8011 | 8001 | adama, roslin, ai-server-4080 | | scha | 8012 (*not deployed*) | 8002 | adama, roslin, ai-server-4080 | -| chat_backend | 8013 (*not deployed*) | 8003 | adama, roslin, ai-server-4080 | +| chat_backend | 8013 | 8003 | adama, roslin, ai-server-4080 | | dta_webapp (nginx) | 8081 | 8080 | adama, roslin, ai-server-4080 | -| chat_web_app (nginx) | 8083 (*not deployed*) | 8082 | adama, roslin, ai-server-4080 | +| chat_web_app (nginx) | 8083 | 8082 | adama, roslin, ai-server-4080 | ### Flow @@ -260,8 +260,8 @@ point each domain at the backend(s): | dta_service | (see DTA NPM hosts) | `adama:8001` / `8011` + same on roslin / ai-server-4080 | | dta_webapp | (see DTA NPM hosts) | `adama:8080` / `8081` + same on roslin | | scha | `schawheaton.aimloperations.com`, `schawheaton.com` (+ www) | `adama:8002` + `roslin:8002` (+ `ai-server-4080:8002`) | -| chat_web_app | `chat.aimloperations.com` (+ www) | `adama:8082` + `roslin:8082` (+ `ai-server-4080:8082`) | -| chat_backend | `chatbackend.aimloperations.com` | `adama:8003` + `roslin:8003` + `ai-server-4080:8003` | +| chat_web_app | `chat.aimloperations.com` (+ www); `beta.chat.aimloperations.com` | `adama:8082` / `8083` + same on roslin / ai-server-4080 | +| chat_backend | `chatbackend.aimloperations.com`; `beta.chatbackend.aimloperations.com` | `adama:8003` / `8013` + same on roslin / ai-server-4080 | ### Required changes IN each app repo (owned separately) @@ -369,8 +369,8 @@ Store vault password for CI in a file readable only by the Act runner (e.g. `~/. | 9 | Stub `deploy-apps.yml` + update `company_site` workflow | Future | | 10 | Dockerize `company_site` | Future (separate ticket) | | 10a | Register + deploy `scha` (all webservers, port 8002) | In progress ([scha#19](https://git.aimloperations.com/ai_ml_operations/scha/issues/19)) | -| 10b | Register + deploy `chat_web_app` (node-static, port 8082) | In progress ([chat_web_app#13](https://git.aimloperations.com/ai_ml_operations/chat_web_app/issues/13)) | -| 10c | Register + deploy `chat_backend` (django, port 8003) | In progress ([chat_backend#6](https://git.aimloperations.com/ai_ml_operations/chat_backend/issues/6)) | +| 10b | Register + deploy `chat_web_app` (node-static, ports 8082/8083) | Done (prod); beta ([#7](https://git.aimloperations.com/ai_ml_operations/server-infra/issues/7), [chat_web_app#35](https://git.aimloperations.com/ai_ml_operations/chat_web_app/issues/35)) | +| 10c | Register + deploy `chat_backend` (django, ports 8003/8013) | Done (prod); beta ([#7](https://git.aimloperations.com/ai_ml_operations/server-infra/issues/7), [chat_backend#26](https://git.aimloperations.com/ai_ml_operations/chat_backend/issues/26)) | | 11 | Gitea container registry (optional) | Future | ## Open Decisions diff --git a/inventory/host_vars/adama.yml b/inventory/host_vars/adama.yml index 1a32184..9cd582c 100644 --- a/inventory/host_vars/adama.yml +++ b/inventory/host_vars/adama.yml @@ -13,6 +13,6 @@ host_apps: - { name: scha, env: prod, port: 8002 } # optional: - { name: scha, env: beta, port: 8012 } - { name: chat_web_app, env: prod, port: 8082 } - # optional: - { name: chat_web_app, env: beta, port: 8083 } + - { name: chat_web_app, env: beta, port: 8083 } - { name: chat_backend, env: prod, port: 8003 } - # optional: - { name: chat_backend, env: beta, port: 8013 } + - { name: chat_backend, env: beta, port: 8013 } diff --git a/inventory/host_vars/ai-server-4080.yml b/inventory/host_vars/ai-server-4080.yml index a6acfa4..c8f578d 100644 --- a/inventory/host_vars/ai-server-4080.yml +++ b/inventory/host_vars/ai-server-4080.yml @@ -26,6 +26,6 @@ host_apps: - { name: dta_service, env: beta, port: 8011 } - { name: scha, env: prod, port: 8002 } - { name: chat_web_app, env: prod, port: 8082 } - # optional: - { name: chat_web_app, env: beta, port: 8083 } + - { name: chat_web_app, env: beta, port: 8083 } - { name: chat_backend, env: prod, port: 8003 } - # optional: - { name: chat_backend, env: beta, port: 8013 } \ No newline at end of file + - { name: chat_backend, env: beta, port: 8013 } \ No newline at end of file diff --git a/inventory/host_vars/roslin.yml b/inventory/host_vars/roslin.yml index 787438f..315c291 100644 --- a/inventory/host_vars/roslin.yml +++ b/inventory/host_vars/roslin.yml @@ -10,6 +10,6 @@ host_apps: - { name: scha, env: prod, port: 8002 } # optional: - { name: scha, env: beta, port: 8012 } - { name: chat_web_app, env: prod, port: 8082 } - # optional: - { name: chat_web_app, env: beta, port: 8083 } + - { name: chat_web_app, env: beta, port: 8083 } - { name: chat_backend, env: prod, port: 8003 } - # optional: - { name: chat_backend, env: beta, port: 8013 } + - { name: chat_backend, env: beta, port: 8013 } -- 2.54.0