1
0
mirror of git://f0xx.org/ac/ac-deploy synced 2026-07-29 03:58:34 +03:00
Files
ac-deploy/sim/cluster0/scripts/deploy-app.sh
Anton Afanasyev b47f91b1ab Cluster deploy: ac/* only, hub assets, auth routes at project root.
Remove monolith clone path; add hub deploy, legacy purge, composed-backend
login/logout nginx locations, and full hub asset rsync validation.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-24 22:53:38 +02:00

22 lines
708 B
Bash

#!/bin/sh
# DEPRECATED — cluster uses ac/* only (ac-workspace + compose-lab-backend.sh).
# This script refuses to clone git://f0xx.org/android_cast.
set -eu
ROOT="$(cd "$(dirname "$0")/.." && pwd)"
# shellcheck source=/dev/null
. "$ROOT/scripts/lib/common.sh"
load_cluster_env
LEGACY="${APP_ROOT}/android_cast"
if [ -d "${LEGACY}/.git" ]; then
_url="$(git -C "$LEGACY" config --get remote.origin.url 2>/dev/null || true)"
case "$_url" in
*android_cast*)
die "legacy monolith still present at $LEGACY ($_url). Run: sudo sh $ROOT/scripts/purge-legacy-monolith.sh"
;;
esac
fi
log "deploy-app: skipped (ac/* compose path — see deploy-ac-workspace.sh + compose-lab-backend.sh)"
exit 0