Sync runner checkout / sync (push) Successful in 6s
## Summary - Closes [#24](#24). - Register `college_craft` in `app_catalog` (`type: django`, repo `ai_ml_operations/college_craft`, default branch `master`). - Add `host_apps` prod `:8006` / beta `:8016` on **adama**, **roslin**, **starbuck**, **apollo**, and **ai-server-4080**. - dj-queue **worker singleton on adama** only (`compose_profiles: [worker]`); other hosts web-only. - Document ports, NPM hosts, Postgres DBs, secrets, Nominatim (`10.0.0.128:8089`), and the app-repo `--app client_site` leftover. - Add `college_craft` to `scripts/deploy.sh` `--app` help. ## Out of scope (ops, after merge) - Create Postgres DBs `college_craft` / `college_craft_beta` on `10.0.0.230` and grant `westfarn`. - Write control-node secrets `~/Documents/secrets/college_craft/college_craft_{prod,beta}.env`. - NPM: `collegecraft.com` (+ www) → `:8006`; `college-craft-preview.aimloperations.com` → `:8016`. - Smoke deploy after secrets + DBs exist: ```bash ~/Documents/repos/server-infra/scripts/deploy.sh --app college_craft --env beta --ref master ~/Documents/repos/server-infra/scripts/deploy.sh --app college_craft --env prod --ref master ``` ## Test plan - [ ] Confirm `app_catalog.college_craft` matches other django apps (`compose_file`, `migrate_cmd`). - [ ] Confirm ports 8006/8016 unused elsewhere and match across all five hosts. - [ ] Confirm only adama has `compose_profiles: [worker]` for college_craft. - [ ] After secrets + DBs: deploy beta then prod; `/healthz/` up on both; prod holding page, beta full site. Reviewed-on: #25
23 lines
1.1 KiB
YAML
23 lines
1.1 KiB
YAML
---
|
|
# Mirrors adama for active/active. Ports MUST match adama/starbuck/apollo so
|
|
# NPM upstreams can balance roslin:PORT with the other app hosts.
|
|
host_apps:
|
|
- { name: company_site, env: prod, port: 8000 }
|
|
- { name: dta_service, env: prod, port: 8001 }
|
|
- { name: dta_service, env: beta, port: 8011 }
|
|
- { name: dta_webapp, env: prod, port: 8080 }
|
|
- { name: dta_webapp, env: beta, port: 8081 }
|
|
- { name: scha, env: prod, port: 8002 }
|
|
# optional: - { name: scha, env: beta, port: 8012 }
|
|
- { name: chat_web_app, env: prod, port: 8082 }
|
|
- { name: chat_web_app, env: beta, port: 8083 }
|
|
- { name: chat_backend, env: prod, port: 8003 }
|
|
- { name: chat_backend, env: beta, port: 8013 }
|
|
# monica_site / college_craft workers NOT here — adama sets compose_profiles: [worker].
|
|
- { name: monica_site, env: prod, port: 8004 }
|
|
- { name: monica_site, env: beta, port: 8014 }
|
|
- { name: url_shortening_service, env: prod, port: 8005 }
|
|
- { name: url_shortening_service, env: beta, port: 8015 }
|
|
- { name: college_craft, env: prod, port: 8006 }
|
|
- { name: college_craft, env: beta, port: 8016 }
|