fix(cinny-deploy): the call page's scripts are deployed again
Lint / No secrets in webhook configs (pull_request) Successful in 11s
Lint / Landing page is rendered (matrix (pull_request) Successful in 8s
Lint / Python (ruff) (pull_request) Successful in 7s
Lint / Python deps (pip-audit) (pull_request) Successful in 44s
Lint / Secret scan (gitleaks) (pull_request) Successful in 9s
Lint / Shell (shellcheck) (push) Successful in 14s
Lint / JS (eslint) (push) Successful in 9s
Lint / No secrets in webhook configs (push) Successful in 6s
Lint / Landing page is rendered (matrix (push) Successful in 5s
Lint / Python (ruff) (push) Successful in 7s
Lint / Python deps (pip-audit) (push) Successful in 40s
Lint / Secret scan (gitleaks) (push) Successful in 6s
Lint / Shell (shellcheck) (pull_request) Successful in 14s
Lint / JS (eslint) (pull_request) Successful in 10s
Lint / No secrets in webhook configs (pull_request) Successful in 11s
Lint / Landing page is rendered (matrix (pull_request) Successful in 8s
Lint / Python (ruff) (pull_request) Successful in 7s
Lint / Python deps (pip-audit) (pull_request) Successful in 44s
Lint / Secret scan (gitleaks) (pull_request) Successful in 9s
Lint / Shell (shellcheck) (push) Successful in 14s
Lint / JS (eslint) (push) Successful in 9s
Lint / No secrets in webhook configs (push) Successful in 6s
Lint / Landing page is rendered (matrix (push) Successful in 5s
Lint / Python (ruff) (push) Successful in 7s
Lint / Python deps (pip-audit) (push) Successful in 40s
Lint / Secret scan (gitleaks) (push) Successful in 6s
Lint / Shell (shellcheck) (pull_request) Successful in 14s
Lint / JS (eslint) (pull_request) Successful in 10s
#30 added `rsync --exclude assets/` to keep old app assets, but an unanchored exclude matches every directory named assets, including public/element-call/assets/. Each deploy then updated the call page's index.html but not its hashed scripts, so after the lotus.28 deploy the call page requested files that did not exist (66 x 404 from 00:05 on 2026-10-20 until the assets were copied in by hand). The excludes are now anchored (/assets/, /public/element-call/assets/), and both asset directories get the same treatment: copied without --delete, pruned after 14 days, so an open call page keeps its scripts across a deploy. config.json stays unanchored on purpose (the production call config lives at public/element-call/config.json). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017PCb59uY3UKqDqt7B6hzd5
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
8e5cdf50b5
commit
85c58d5ed0
+12
-3
@@ -164,9 +164,18 @@ echo "[$(date '+%Y-%m-%d %H:%M:%S')] Deploying to $WEBROOT..."
|
|||||||
# still holding an older index.html (or service-worker precache) asks for its
|
# still holding an older index.html (or service-worker precache) asks for its
|
||||||
# assets/index-<old hash>.js, and deleting them on every deploy broke the app
|
# assets/index-<old hash>.js, and deleting them on every deploy broke the app
|
||||||
# for those users until their cached shell expired. Prune after 14 days.
|
# for those users until their cached shell expired. Prune after 14 days.
|
||||||
rsync -a --delete --exclude config.json --exclude assets/ dist/ "$WEBROOT/"
|
# The asset excludes are ANCHORED (leading /): an unanchored `assets/` also
|
||||||
rsync -a dist/assets/ "$WEBROOT/assets/"
|
# matched public/element-call/assets/, so the call page's index.html was
|
||||||
find "$WEBROOT/assets" -type f -mtime +14 -delete
|
# updated while its hashed scripts never were, and calls failed to load.
|
||||||
|
# config.json stays unanchored on purpose: public/element-call/config.json is
|
||||||
|
# the production call config too.
|
||||||
|
rsync -a --delete --exclude config.json \
|
||||||
|
--exclude /assets/ --exclude /public/element-call/assets/ dist/ "$WEBROOT/"
|
||||||
|
for dir in assets public/element-call/assets; do
|
||||||
|
mkdir -p "$WEBROOT/$dir"
|
||||||
|
rsync -a "dist/$dir/" "$WEBROOT/$dir/"
|
||||||
|
find "$WEBROOT/$dir" -type f -mtime +14 -delete
|
||||||
|
done
|
||||||
|
|
||||||
echo "[$(date '+%Y-%m-%d %H:%M:%S')] ===== Deploy complete ($VITE_APP_VERSION) ====="
|
echo "[$(date '+%Y-%m-%d %H:%M:%S')] ===== Deploy complete ($VITE_APP_VERSION) ====="
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user