#!/bin/bash # Deploy glossary to all domains set -e DIST_DIR="/home/bernt/.openclaw/workspace/glossary/dist" DATA_FILE="/home/bernt/.openclaw/workspace/glossary/glossary-data.json" echo "🚀 Deploying Glossary..." # Deploy to quixzoom.com echo "📤 Deploying to quixzoom.com..." aws s3 cp "$DIST_DIR/index.html" s3://quixzoom.com/glossary/index.html --content-type "text/html; charset=utf-8" aws s3 cp "$DATA_FILE" s3://quixzoom.com/glossary/glossary-data.json --content-type "application/json" aws cloudfront create-invalidation --distribution-id E1XAMPLE --paths "/glossary/*" > /dev/null 2>&1 || true # Deploy to landvex.com echo "📤 Deploying to landvex.com..." aws s3 cp "$DIST_DIR/index.html" s3://landvex.com/glossary/index.html --content-type "text/html; charset=utf-8" aws s3 cp "$DIST_DIR/glossary-landvex.html" s3://landvex.com/glossary/landvex.html --content-type "text/html; charset=utf-8" aws s3 cp "$DATA_FILE" s3://landvex.com/glossary/glossary-data.json --content-type "application/json" aws cloudfront create-invalidation --distribution-id E2XAMPLE --paths "/glossary/*" > /dev/null 2>&1 || true # Deploy to aamos.ai echo "📤 Deploying to aamos.ai..." aws s3 cp "$DIST_DIR/glossary-aamos.html" s3://aamos.ai/glossary/index.html --content-type "text/html; charset=utf-8" aws s3 cp "$DATA_FILE" s3://aamos.ai/glossary/glossary-data.json --content-type "application/json" aws cloudfront create-invalidation --distribution-id E3XAMPLE --paths "/glossary/*" > /dev/null 2>&1 || true echo "✅ Glossary deployed to all domains!"