fix: correct static file layout for Apache Alias serving
Apache serves /cc-dashboard/* from /var/www/html/cc-dashboard/ directly. index.html goes to the root, CSS/JS to static/ subdirectory to match /cc-dashboard/static/... paths referenced in index.html. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
805566f1e5
commit
c42d4491cb
1 changed files with 6 additions and 1 deletions
|
|
@ -15,8 +15,13 @@ log "Pulling latest code..."
|
|||
git pull
|
||||
|
||||
# ── 2. Sync static files to web root ────────────────────────────────────────
|
||||
# Apache serves /cc-dashboard/* from /var/www/html/cc-dashboard/
|
||||
# index.html must be at the root; CSS/JS go into static/ subdir to match
|
||||
# paths in index.html (/cc-dashboard/static/css/..., /cc-dashboard/static/js/...)
|
||||
log "Syncing static files to $STATIC_DST..."
|
||||
sudo rsync -a --delete "$STATIC_SRC/" "$STATIC_DST/"
|
||||
sudo mkdir -p "$STATIC_DST/static"
|
||||
sudo cp "$STATIC_SRC/index.html" "$STATIC_DST/index.html"
|
||||
sudo rsync -a --delete --exclude='index.html' "$STATIC_SRC/" "$STATIC_DST/static/"
|
||||
|
||||
# ── 3. Rebuild app image ─────────────────────────────────────────────────────
|
||||
log "Building app image..."
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue