1
0
mirror of git://f0xx.org/ac/ac-deploy synced 2026-07-29 04:19:00 +03:00

fix deploy-ac-broadcast: source from monorepo NFS; remove broadcast from CORE subs

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Anton Afanasyeu
2026-07-04 11:28:07 +02:00
parent 6c9402947f
commit 8dbfe5e321
2 changed files with 11 additions and 4 deletions

View File

@@ -8,10 +8,17 @@ ROOT="$(cd "$(dirname "$0")/.." && pwd)"
load_cluster_env
WS="${AC_WORKSPACE_ROOT:-/var/www/ac/workspace}"
BROADCAST_SRC="${WS}/ac-ms-broadcast"
BROADCAST_DEST="/var/www/ac/broadcast"
[ -d "$BROADCAST_SRC" ] || { log "skip deploy-ac-broadcast: ac-ms-broadcast not in workspace"; return 0; }
# Prefer NFS monorepo path (ac-ms-broadcast is a directory in the main ac monorepo, not a separate submodule)
AC_REPO="${AC_MONOREPO_ROOT:-/mnt/repos/ac}"
if [ -d "${AC_REPO}/ac-ms-broadcast" ]; then
BROADCAST_SRC="${AC_REPO}/ac-ms-broadcast"
elif [ -d "${WS}/ac-ms-broadcast" ]; then
BROADCAST_SRC="${WS}/ac-ms-broadcast"
else
log "skip deploy-ac-broadcast: ac-ms-broadcast not found"
return 0
fi
log "deploy ac-ms-broadcast → ${BROADCAST_DEST}"
mkdir -p "$BROADCAST_DEST"