Aimpress_site/scripts/deploy.sh
Vadym Samoilenko 67c7ab3289 Initial commit: Aimpress website
React 19 + TypeScript SPA with Vite, mobile responsive fixes,
GitHub Actions CI/CD pipeline for automated deployment.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-08 13:47:37 +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"