mirror of
git://f0xx.org/ac/ac-deploy
synced 2026-07-29 04:19:00 +03:00
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>
This commit is contained in:
committed by
Anton Afanasyeu
parent
76d4797cac
commit
b47f91b1ab
@@ -9,7 +9,8 @@ load_cluster_env
|
||||
AC_ROOT="${AC_WORKSPACE_ROOT:-/var/www/ac/workspace}"
|
||||
ORIGIN="${AC_WORKSPACE_ORIGIN:-git://f0xx.org/ac/ac-workspace}"
|
||||
BRANCH="${AC_GIT_BRANCH:-next}"
|
||||
SUBS="${AC_SUBMODULES_CORE:-ac-platform-db ac-platform-php ac-platform-web ac-platform-edge ac-deploy ac-docs ac-scripts ac-ms-url-shortener ac-be-hub ac-ms-identity}"
|
||||
SUBS_CORE="${AC_SUBMODULES_CORE:-ac-platform-db ac-platform-php ac-platform-web ac-platform-edge ac-deploy ac-docs ac-scripts ac-ms-url-shortener ac-be-hub ac-ms-identity}"
|
||||
SUBS_COMPOSE="${AC_SUBMODULES_COMPOSE:-ac-platform-php ac-platform-web ac-ms-identity ac-ms-rbac ac-ms-devices ac-ms-issues ac-ms-tickets ac-ms-graphs ac-ms-remote-access ac-be-auth ac-be-issues ac-be-tickets ac-be-graphs ac-be-remote-access ac-be-access ac-be-builder ac-ms-build}"
|
||||
|
||||
mkdir -p "$(dirname "$AC_ROOT")"
|
||||
git config --global --add safe.directory "$AC_ROOT" 2>/dev/null || true
|
||||
@@ -27,10 +28,13 @@ else
|
||||
fi
|
||||
|
||||
cd "$AC_ROOT"
|
||||
log "submodule sync + init: ${SUBS}"
|
||||
log "submodule sync + init core: ${SUBS_CORE}"
|
||||
git submodule sync --recursive 2>/dev/null || true
|
||||
# shellcheck disable=SC2086
|
||||
git submodule update --init --depth 1 $SUBS
|
||||
git submodule update --init --depth 1 $SUBS_CORE
|
||||
log "submodule init compose: ${SUBS_COMPOSE}"
|
||||
# shellcheck disable=SC2086
|
||||
git submodule update --init --depth 1 $SUBS_COMPOSE
|
||||
|
||||
chown -R nginx:nginx "$(dirname "$AC_ROOT")" 2>/dev/null || true
|
||||
log "deploy-ac-workspace_ok $(host_short) $(git -C "$AC_ROOT" rev-parse --short HEAD)"
|
||||
|
||||
Reference in New Issue
Block a user