Aimpress-site/scripts/deploy.sh
Vadym Samoilenko 51114f1a20 Add reviews.json to public/ so it persists across deploys
Sync script will overwrite it on server with fresh data twice a month.

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

18 lines
507 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/' -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"