Website docs (website/docs/): - Delete 6 stale -md.html duplicates - Rename docs-clients/miners/developers → clients/miners/developers.html - Unify header/nav across all 15 pages (new .site-header pattern) - Fix 34 dead href=# links with real targets - Upgrade Font Awesome v4→v6 in index.html - Replace search stub with live client-side search (15-page index) - Extract all inline CSS into shared docs.css (+630 lines) - Extract inline theme JS into shared theme.js - Strip inline style= attributes from 10+ pages - Add .announce-banner, .source-links, .search-results CSS classes - Add Markdown Source links to clients/miners/developers pages - Update components.html title to Architecture & Components - Move browser-wallet.html to website/wallet/, leave redirect - Update all dates to February 2026 Website root: - Delete 6 root-level duplicate HTML files (160KB saved) - Rewire index.html and 404.html links Root README.md: - Fix 8 broken doc links to new numbered folder structure - Update copyright to 2026 .gitignore + .example files: - Gitignore private files: .aitbc.yaml, .env, deploy scripts, GPU scripts, service scripts, infra configs, .windsurf/, website README - Create 7 .example files for GitHub users with sanitized templates - Untrack 47 previously committed private files Live server: - Push all website files to aitbc-cascade:/var/www/html/ - Clean stale admin.html and index.nginx-debian.html
51 lines
1.7 KiB
Bash
51 lines
1.7 KiB
Bash
#!/bin/bash
|
|
|
|
# AITBC Services Deployment to Container
|
|
# Copy to deploy-to-container.sh and adjust variables for your environment
|
|
|
|
set -e
|
|
|
|
# === CONFIGURE THESE ===
|
|
CONTAINER_NAME="aitbc"
|
|
CONTAINER_IP="YOUR_CONTAINER_IP"
|
|
PROJECT_DIR="/path/to/your/aitbc"
|
|
SSH_ALIAS="your-ssh-alias" # or user@host
|
|
|
|
echo "🚀 Deploying AITBC services to container: $CONTAINER_NAME"
|
|
echo "Container IP: $CONTAINER_IP"
|
|
echo ""
|
|
|
|
# Colors for output
|
|
RED='\033[0;31m'
|
|
GREEN='\033[0;32m'
|
|
YELLOW='\033[1;33m'
|
|
NC='\033[0m'
|
|
|
|
# 1. Push website
|
|
echo -e "${YELLOW}Deploying website...${NC}"
|
|
scp -r "$PROJECT_DIR/website/index.html" "$PROJECT_DIR/website/404.html" \
|
|
"$SSH_ALIAS:/var/www/html/"
|
|
scp -r "$PROJECT_DIR/website/docs/"*.html "$SSH_ALIAS:/var/www/html/docs/"
|
|
scp "$PROJECT_DIR/website/docs/css/docs.css" "$SSH_ALIAS:/var/www/html/docs/css/"
|
|
scp "$PROJECT_DIR/website/docs/js/theme.js" "$SSH_ALIAS:/var/www/html/docs/js/"
|
|
echo -e "${GREEN}✓ Website deployed${NC}"
|
|
|
|
# 2. Deploy coordinator API
|
|
echo -e "${YELLOW}Deploying coordinator API...${NC}"
|
|
ssh "$SSH_ALIAS" "cd /opt/aitbc && pip install -e apps/coordinator-api/"
|
|
ssh "$SSH_ALIAS" "systemctl restart aitbc-coordinator"
|
|
echo -e "${GREEN}✓ Coordinator deployed${NC}"
|
|
|
|
# 3. Deploy blockchain node
|
|
echo -e "${YELLOW}Deploying blockchain node...${NC}"
|
|
ssh "$SSH_ALIAS" "cd /opt/aitbc && pip install -e apps/blockchain-node/"
|
|
ssh "$SSH_ALIAS" "systemctl restart aitbc-blockchain"
|
|
echo -e "${GREEN}✓ Blockchain node deployed${NC}"
|
|
|
|
# 4. Verify
|
|
echo ""
|
|
echo -e "${YELLOW}Verifying services...${NC}"
|
|
ssh "$SSH_ALIAS" "curl -s http://127.0.0.1:8000/v1/health | head -1"
|
|
ssh "$SSH_ALIAS" "curl -s http://127.0.0.1:9080/rpc/health | head -1"
|
|
echo -e "${GREEN}✓ All services running${NC}"
|