Some checks failed
API Endpoint Tests / test-api-endpoints (push) Successful in 16s
Blockchain Synchronization Verification / sync-verification (push) Successful in 3s
CLI Tests / test-cli (push) Successful in 13s
Cross-Chain Functionality Tests / test-cross-chain-sync (push) Failing after 2s
Cross-Chain Functionality Tests / test-cross-chain-transactions (push) Successful in 2s
Cross-Chain Functionality Tests / test-cross-chain-bridge (push) Has been skipped
Cross-Chain Functionality Tests / test-multi-chain-consensus (push) Failing after 2s
Cross-Chain Functionality Tests / aggregate-results (push) Has been skipped
Cross-Node Transaction Testing / transaction-test (push) Successful in 9s
Deploy to Testnet / deploy-testnet (push) Successful in 1m7s
Documentation Validation / validate-docs (push) Successful in 8s
Documentation Validation / validate-policies-strict (push) Successful in 14s
Integration Tests / test-service-integration (push) Successful in 2m42s
Multi-Node Blockchain Health Monitoring / health-check (push) Successful in 10s
Multi-Node Stress Testing / stress-test (push) Successful in 8s
Node Failover Simulation / failover-test (push) Failing after 6s
P2P Network Verification / p2p-verification (push) Successful in 7s
Deploy to Testnet / notify-deployment (push) Has been cancelled
Python Tests / test-python (push) Has been cancelled
Security Scanning / security-scan (push) Has been cancelled
Package Tests / Python package - aitbc-agent-sdk (push) Failing after 1m5s
Package Tests / Python package - aitbc-core (push) Successful in 58s
Package Tests / Python package - aitbc-crypto (push) Successful in 36s
Package Tests / Python package - aitbc-sdk (push) Successful in 30s
Package Tests / JavaScript package - aitbc-sdk-js (push) Successful in 28s
Package Tests / JavaScript package - aitbc-token (push) Successful in 23s
Production Tests / Production Integration Tests (push) Failing after 1m7s
Staking Tests / test-staking-service (push) Failing after 3s
Staking Tests / test-staking-integration (push) Has been skipped
Staking Tests / test-staking-contract (push) Has been skipped
Staking Tests / run-staking-test-runner (push) Has been skipped
- Replace hardcoded IPs in deploy-to-server.sh with AITBC_DEPLOY_SERVER - Replace hardcoded IPs in deploy-to-container.sh with AITBC_CONTAINER_IP - Replace hardcoded IPs in deploy-explorer.sh with AITBC_DEPLOY_SERVER - Replace hardcoded IPs in deploy-exchange.sh with AITBC_DEPLOY_SERVER - Replace hardcoded IPs in container-deploy.py with AITBC_CONTAINER_IP - Replace hardcoded IPs in deploy_gpu_to_container.py with AITBC_CONTAINER_IP - Replace hardcoded IPs in deploy_container_with_miner.py with AITBC_CONTAINER_IP - Default to localhost if env vars not set - Addresses report item #4 (hardcoded IPs in deployment scripts)
67 lines
1.6 KiB
Bash
Executable File
67 lines
1.6 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
# Deploy AITBC Explorer to the server
|
|
|
|
set -e
|
|
|
|
SERVER="${AITBC_DEPLOY_SERVER:-root@127.0.0.1}"
|
|
EXPLORER_DIR="/root/aitbc/apps/explorer-web"
|
|
NGINX_CONFIG="/etc/nginx/sites-available/aitbc"
|
|
|
|
echo "🚀 Deploying AITBC Explorer to Server"
|
|
echo "====================================="
|
|
echo "Server: $SERVER"
|
|
echo ""
|
|
|
|
# Colors
|
|
GREEN='\033[0;32m'
|
|
YELLOW='\033[1;33m'
|
|
NC='\033[0m'
|
|
|
|
print_status() {
|
|
echo -e "${GREEN}[INFO]${NC} $1"
|
|
}
|
|
|
|
print_warning() {
|
|
echo -e "${YELLOW}[WARN]${NC} $1"
|
|
}
|
|
|
|
# Build the explorer locally first
|
|
print_status "Building explorer locally..."
|
|
cd /home/oib/windsurf/aitbc/apps/explorer-web
|
|
npm run build
|
|
|
|
# Copy built files to server
|
|
print_status "Copying explorer build to server..."
|
|
scp -r dist $SERVER:$EXPLORER_DIR/
|
|
|
|
# Update nginx config to include explorer
|
|
print_status "Updating nginx configuration..."
|
|
|
|
# Backup current config
|
|
ssh $SERVER "cp $NGINX_CONFIG ${NGINX_CONFIG}.backup"
|
|
|
|
# Add explorer location to nginx config
|
|
ssh $SERVER "sed -i '/# Health endpoint/i\\
|
|
# Explorer\\
|
|
location /explorer/ {\\
|
|
alias /root/aitbc/apps/explorer-web/dist/;\\
|
|
try_files \$uri \$uri/ /explorer/index.html;\\
|
|
}\\
|
|
\\
|
|
# Explorer mock data\\
|
|
location /explorer/mock/ {\\
|
|
alias /root/aitbc/apps/explorer-web/public/mock/;\\
|
|
}\\
|
|
' $NGINX_CONFIG"
|
|
|
|
# Test and reload nginx
|
|
print_status "Testing and reloading nginx..."
|
|
ssh $SERVER "nginx -t && systemctl reload nginx"
|
|
|
|
print_status "✅ Explorer deployment complete!"
|
|
echo ""
|
|
echo "📋 Explorer URL:"
|
|
echo " 🌐 Explorer: https://aitbc.bubuit.net/explorer/"
|
|
echo ""
|