diff --git a/DEPLOYMENT.md b/DEPLOYMENT.md index 074cb8d..3c36495 100644 --- a/DEPLOYMENT.md +++ b/DEPLOYMENT.md @@ -491,6 +491,21 @@ docker compose --env-file .env.test -f docker-compose.prod.yml logs --tail=100 w docker compose --env-file .env.test -f docker-compose.prod.yml logs --tail=100 caddy ``` +## If localhost still looks wrong after the server is fixed +Use this order before assuming the local checkout is missing code: +1. hard refresh the page with `Cmd + Shift + R` +2. clear site data for `127.0.0.1:8088` in browser devtools and sign in again +3. restart the local web container: + ```bash + docker compose restart web + ``` +4. if it still survives, rebuild the local stack: + ```bash + docker compose up -d --build + ``` + +This is the correct recovery path for stale browser state, shared-header fixes, page-local CSS fixes, and versioned static asset updates. + ## Rollback This deployment path is source-upload based, not image-tag based. diff --git a/backend/workflows/templates/workflows/developer_handbook.html b/backend/workflows/templates/workflows/developer_handbook.html index 49d6389..87cf19e 100644 --- a/backend/workflows/templates/workflows/developer_handbook.html +++ b/backend/workflows/templates/workflows/developer_handbook.html @@ -624,6 +624,20 @@ make backup-verify BACKUP_DIR=backups/backup_YYYYmmdd_HHMMSS
Cmd + Shift + R.127.0.0.1:8088 in the browser devtools and sign in again.docker compose restart web
+ docker compose up -d --build
+ This is the right order when shared header fixes, page-local CSS fixes, or versioned static assets look correct on the server but localhost still shows the old UI.
+web and hard-refresh browser