Aimpress_site/scripts/deploy.sh
Vadym Samoilenko 9ca6272b98 Fix deploy to preserve reviews.json and show all rated reviews
- Exclude reviews.json from rsync --delete so deploy doesn't wipe it
- Show all reviews with rating >= 4 (not just those with text)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-08 14:30:37 +00:00

18 lines
532 B
Bash
Executable file

#!/bin/bash
set -e
SERVER="ubuntu@57.128.160.249"
SSH_PORT=1220
REMOTE_DIR="/opt/00-infrastructure/Website/website"
echo "==> Building site..."
npm run build
echo "==> Uploading dist/ to server (excluding blog/)..."
rsync -avz --delete --exclude='blog/' --exclude='reviews.json' -e "ssh -p ${SSH_PORT}" dist/ "${SERVER}:${REMOTE_DIR}/dist/"
echo "==> Restarting web container..."
ssh -p ${SSH_PORT} ${SERVER} "cd ${REMOTE_DIR} && docker compose restart web"
echo "==> Deploy complete\!"
echo "==> Site: https://ai-impress.com"