Deploy chat_web_app via server-infra (node-static) #15

Merged
westfarn merged 2 commits from issue-13-node-static-deploy into master 2026-07-25 04:34:13 -07:00
Owner

Summary

Implements chat_web_app#13 Part A: wire the CRA frontend into the same node-static deploy path as dta_webapp (no Docker for serving).

  • build:prod / build:beta write into /var/www/{env}.chat.aimloperations/html
  • API/WS URLs come from REACT_APP_* (.env.production / .env.beta) instead of hardcoded localhost
  • Gitea unit tests + auto deploy-prod on master; deploy-beta via workflow_dispatch
  • README documents local dev, env files, and webroot layout

Branch includes the #11 unit-test commit (test:ci) so CI has a green suite.

Companion server-infra branch (Part B): issue-13-register-chat-web-app on ai_ml_operations/server-infra.

Test plan

  • cd llm-fe && npm run test:ci
  • Merge + ensure Unit Tests workflow passes on PR
  • Merge server-infra issue-13-register-chat-web-app, then sync/pull on runner
  • Redeploy web-static (or full host provision) so nginx listens on 8082
  • Manual: server-infra/scripts/deploy.sh --app chat_web_app --env prod --ref <sha>
  • NPM: point chat.aimloperations.com at adama:8082 + roslin:8082 + ai-server-4080:8082
  • Confirm built assets hit https://chatbackend.aimloperations.com
## Summary Implements [chat_web_app#13](https://git.aimloperations.com/ai_ml_operations/chat_web_app/issues/13) Part A: wire the CRA frontend into the same **node-static** deploy path as `dta_webapp` (no Docker for serving). - `build:prod` / `build:beta` write into `/var/www/{env}.chat.aimloperations/html` - API/WS URLs come from `REACT_APP_*` (`.env.production` / `.env.beta`) instead of hardcoded localhost - Gitea unit tests + auto deploy-prod on `master`; deploy-beta via `workflow_dispatch` - README documents local dev, env files, and webroot layout Branch includes the #11 unit-test commit (`test:ci`) so CI has a green suite. Companion server-infra branch (Part B): `issue-13-register-chat-web-app` on `ai_ml_operations/server-infra`. ## Test plan - [ ] `cd llm-fe && npm run test:ci` - [ ] Merge + ensure Unit Tests workflow passes on PR - [ ] Merge server-infra `issue-13-register-chat-web-app`, then sync/pull on runner - [ ] Redeploy web-static (or full host provision) so nginx listens on **8082** - [ ] Manual: `server-infra/scripts/deploy.sh --app chat_web_app --env prod --ref <sha>` - [ ] NPM: point `chat.aimloperations.com` at `adama:8082` + `roslin:8082` + `ai-server-4080:8082` - [ ] Confirm built assets hit `https://chatbackend.aimloperations.com`
westfarn added 1 commit 2026-07-25 04:32:08 -07:00
Wire node-static deploy for chat_web_app (closes #13).
Unit Tests / test (pull_request) Successful in 11s
b075006d0f
Add build:prod/beta webroot scripts, Gitea CI/deploy workflows, and bake API
URLs from REACT_APP_* so hosts can deploy via server-infra like dta_webapp.
westfarn force-pushed issue-13-node-static-deploy from 3710a7f4aa to b075006d0f 2026-07-25 04:32:08 -07:00 Compare
westfarn added 1 commit 2026-07-25 04:33:31 -07:00
Expand README with local setup, env, scripts, and deploy docs.
Unit Tests / test (pull_request) Successful in 9s
91ab318281
Match the dta_webapp README shape and drop the outdated lowercase stub.
westfarn merged commit 5a7a4dd4eb into master 2026-07-25 04:34:13 -07:00
westfarn deleted branch issue-13-node-static-deploy 2026-07-25 04:34:13 -07:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: ai_ml_operations/chat_web_app#15