Files
aitbc/apps/trade-exchange/deploy_real_exchange.sh
oib 9b9c5beb23 ```
chore: enhance .gitignore and remove obsolete documentation files

- Reorganize .gitignore with categorized sections for better maintainability
- Add comprehensive ignore patterns for Python, Node.js, databases, logs, and build artifacts
- Add project-specific ignore rules for coordinator, explorer, and deployment files
- Remove outdated documentation: BITCOIN-WALLET-SETUP.md, LOCAL_ASSETS_SUMMARY.md, README-CONTAINER-DEPLOYMENT.md, README-DOMAIN-DEPLOYMENT.md
```
2026-01-24 14:44:51 +01:00

55 lines
1.6 KiB
Bash
Executable File

#!/bin/bash
# Deploy Real AITBC Trade Exchange
echo "🚀 Deploying Real AITBC Trade Exchange..."
# Install Python dependencies
echo "📦 Installing Python dependencies..."
pip3 install -r requirements.txt
# Kill existing services
echo "🔄 Stopping existing services..."
pkill -f "server.py --port 3002" || true
pkill -f "exchange_api.py" || true
# Start the Exchange API server
echo "🔥 Starting Exchange API server on port 3003..."
nohup python3 exchange_api.py > exchange_api.log 2>&1 &
sleep 2
# Start the frontend with real trading
echo "🌐 Starting Exchange frontend with real trading..."
nohup python3 server.py --port 3002 > exchange_frontend.log 2>&1 &
sleep 2
# Check if services are running
echo "✅ Checking services..."
if pgrep -f "exchange_api.py" > /dev/null; then
echo "✓ Exchange API is running on port 3003"
else
echo "✗ Exchange API failed to start"
fi
if pgrep -f "server.py --port 3002" > /dev/null; then
echo "✓ Exchange frontend is running on port 3002"
else
echo "✗ Exchange frontend failed to start"
fi
echo ""
echo "🎉 Real Exchange Deployment Complete!"
echo ""
echo "📍 Access the exchange at:"
echo " Frontend: https://aitbc.bubuit.net/Exchange"
echo " API: http://localhost:3003"
echo ""
echo "📊 API Endpoints:"
echo " GET /api/trades/recent - Get recent trades"
echo " GET /api/orders/orderbook - Get order book"
echo " POST /api/orders - Place new order"
echo " GET /api/health - Health check"
echo ""
echo "📝 Logs:"
echo " API: tail -f exchange_api.log"
echo " Frontend: tail -f exchange_frontend.log"