Compare commits

..
3 Commits
Author SHA1 Message Date
westfarn 3999b007a5 Add Django unit tests for public pages, forms, models, Stripe, and auth.
CI / test (pull_request) Successful in 3s
Unit Tests / test (pull_request) Successful in 3s
Gives CI/deploy workflows something real to run so PRs and master pushes are gated on coverage of core schasite behavior.
2026-07-14 03:47:50 -07:00
westfarn 5acddd37e2 Fix WhiteNoise crash from missing CSS background GIFs (#23)
Unit Tests / test (push) Successful in 4s
## Summary
- Remove unused `.top-head` / `.top-body` CSS rules that referenced missing GIF files (`top-head.gif`, `top-body.gif`), which caused `whitenoise.storage.MissingFileError` and crashed the prod container at collectstatic/startup.
- Drop a stray `{% load static %}` tag from `style.css` (not a Django template).
- Branch rebased onto current `master` (dockerize already merged via #21); this PR is the CSS-only fix.

## Test plan
- [ ] Merge and let deploy run (or redeploy scha prod).
- [ ] Confirm web container stays up (no WhiteNoise `MissingFileError`).
- [ ] Spot-check site CSS still looks fine on public pages.
- [ ] Separately: if Compose still warns about unset `$…` vars, escape `$` as `$$` in `~/Documents/secrets/scha/scha_prod.env` password/`DATABASE_URL`.

Reviewed-on: #23
2026-07-14 03:32:28 -07:00
westfarn 42418fd123 Dockerize scha + Gitea CI/CD auto-deploy via server-infra (#21)
Unit Tests / test (push) Successful in 3s
## Summary
- Dockerize SCHA Wheaton (uv packaging, Dockerfile, compose, entrypoint) and move secrets/DB config to env-driven `scha/settings/`.
- Add Gitea Actions: unit tests on push/PR to `master`, auto-deploy on green master push via `server-infra/scripts/deploy.sh --app scha --env prod`.
- Prod compose uses shared external Postgres only (no bundled DB); control-node secret template at `.env.prod.example`.

Closes #19 (Part A). Depends on companion server-infra PR for catalog/host_apps registration.

## Test plan
- [ ] `uv sync --frozen` + `DJANGO_ENV=dev DJANGO_SECRET_KEY=test uv run python manage.py check`
- [ ] `docker compose build` succeeds locally
- [ ] `docker compose up` serves app against bundled Postgres
- [ ] `./scripts/validate-env.sh ~/Documents/secrets/scha/scha_prod.env` passes
- [ ] After merge + server-infra catalog live: push to master runs Unit Tests then Deploy

Reviewed-on: #21
2026-07-14 03:12:35 -07:00
-21
View File
@@ -1,5 +1,4 @@
/* CSS Document */
{% load static %}
body{
margin:0px;
background-repeat: repeat;
@@ -13,10 +12,6 @@ h1{
}
h1 span{color:#979797;}
.clear{margin:0px; padding:0px; clear:both;}
.top-head{
height:118px; width:1000px; margin:auto;
background:url(../images/top-head.gif) repeat-x;
}
.logo{
height:103px; width:325px;
float:left; padding:15px 0px 0px 55px;
@@ -72,22 +67,6 @@ h1 span{color:#979797;}
padding-left:22px; font-weight:bold;
background-position: 6px;
}
.top-body{
height:auto; width:940px; margin:auto;
background: url(../images/top-body.gif) repeat-x #cfcfcf;
padding:0px 0px 25px 60px;
}
.top-body-con{
height:auto; width:265px; float:left;
padding:0px 35px 0px 0px;
}
.top-body-con p{
margin:0px; padding:30px 0px 0px 0px;
font-family:Verdana, Arial, Helvetica, sans-serif; color:#2e2e2e;
font-size:11px; font-weight:bold; line-height:26px;
}
.top-body-con a{color:#63880a;}
.top-body-con span{color:#63880a; font-size:15px;}
.img-box{
height:auto; width:auto; float:left;
padding:30px 25px 0px 0px;