#!/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"