fix: regenerate desktop latest.json after deploy checkout
Signed updater bundles on disk are preserved across deploy, but latest.json was reset to the git placeholder. Reconcile on nginx reload. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -2,10 +2,15 @@
|
||||
# desktop/updates static 반영 — nginx reload (볼륨 마운트 시 재빌드 불필요)
|
||||
set -euo pipefail
|
||||
|
||||
ROOT="$(cd "$(dirname "$0")/.." && pwd)"
|
||||
WORK_TREE="${WORK_TREE:-/Users/aidev/apps/goldenChart}"
|
||||
COMPOSE="${DOCKER_COMPOSE_FILE:-$WORK_TREE/docker-compose.yml}"
|
||||
CONTAINER="${FRONTEND_CONTAINER:-gc-frontend}"
|
||||
|
||||
if [[ -x "$ROOT/scripts/reconcile-desktop-latest-json.sh" ]]; then
|
||||
WORK_TREE="$WORK_TREE" "$ROOT/scripts/reconcile-desktop-latest-json.sh" || true
|
||||
fi
|
||||
|
||||
if [[ ! -f "$COMPOSE" ]]; then
|
||||
echo "[reload-desktop-static] skip — no compose: $COMPOSE"
|
||||
exit 0
|
||||
|
||||
Reference in New Issue
Block a user