diff --git a/apps/blockchain-explorer/main.py b/apps/blockchain-explorer/main.py index 6489a45f..0a84fc1c 100755 --- a/apps/blockchain-explorer/main.py +++ b/apps/blockchain-explorer/main.py @@ -1285,4 +1285,4 @@ async def health(): } if __name__ == "__main__": - uvicorn.run(app, host="0.0.0.0", port=8004) + uvicorn.run(app, host="0.0.0.0", port=8007) diff --git a/setup.sh b/setup.sh index 1df865a3..e2cff5d4 100755 --- a/setup.sh +++ b/setup.sh @@ -228,10 +228,25 @@ echo "" echo "🔧 Core Services (8000-8009):" check_service "Coordinator API" "http://localhost:8000/health" check_service "Exchange API" "http://localhost:8001/api/health" +check_service "Marketplace API" "http://localhost:8002/health" check_service "Wallet API" "http://localhost:8003/health" -check_service "Marketplace API" "http://localhost:8006/health" -check_service "Explorer" "http://localhost:8004/health" check_service "Multimodal Service" "http://localhost:8005/health" +check_service "Explorer" "http://localhost:8007/health" + +# Check blockchain node and RPC +echo "" +echo "⛓️ Blockchain Services:" +if systemctl is-active --quiet aitbc-blockchain-node.service; then + echo -e "${GREEN}✓${NC} Blockchain Node is running" +else + echo -e "${RED}✗${NC} Blockchain Node is not running" +fi + +if systemctl is-active --quiet aitbc-blockchain-rpc.service; then + echo -e "${GREEN}✓${NC} Blockchain RPC (port 8006) is running" +else + echo -e "${RED}✗${NC} Blockchain RPC (port 8006) is not running" +fi # AI/Agent/GPU Services (8010-8019) echo "" @@ -249,21 +264,6 @@ echo "" echo "📊 Other Services (8020-8029):" check_service "Modality Optimization" "http://localhost:8023/health" -# Check blockchain node and RPC -echo "" -echo "Blockchain Services:" -if systemctl is-active --quiet aitbc-blockchain-node.service; then - echo -e "${GREEN}✓${NC} Blockchain Node is running" -else - echo -e "${RED}✗${NC} Blockchain Node is not running" -fi - -if systemctl is-active --quiet aitbc-blockchain-rpc.service; then - echo -e "${GREEN}✓${NC} Blockchain RPC is running" -else - echo -e "${RED}✗${NC} Blockchain RPC is not running" -fi - # Check process status echo "" echo "Process Status:" diff --git a/systemd/aitbc-marketplace.service b/systemd/aitbc-marketplace.service index d1397d87..5afcdd05 100644 --- a/systemd/aitbc-marketplace.service +++ b/systemd/aitbc-marketplace.service @@ -8,7 +8,7 @@ Type=simple User=root WorkingDirectory=/opt/aitbc/apps/coordinator-api Environment=PATH=/usr/bin -ExecStart=/usr/bin/python3 -m uvicorn src.app.routers.marketplace_enhanced_app:app --host 127.0.0.1 --port 8006 +ExecStart=/usr/bin/python3 -m uvicorn src.app.routers.marketplace_enhanced_app:app --host 127.0.0.1 --port 8002 ExecReload=/bin/kill -HUP $MAINPID KillMode=mixed TimeoutStopSec=5