Some checks failed
Package Tests / test-python-packages (map[name:aitbc-agent-sdk path:packages/py/aitbc-agent-sdk]) (push) Waiting to run
Package Tests / test-python-packages (map[name:aitbc-core path:packages/py/aitbc-core]) (push) Waiting to run
Package Tests / test-python-packages (map[name:aitbc-crypto path:packages/py/aitbc-crypto]) (push) Waiting to run
Package Tests / test-python-packages (map[name:aitbc-sdk path:packages/py/aitbc-sdk]) (push) Waiting to run
Package Tests / test-javascript-packages (map[name:aitbc-sdk-js path:packages/js/aitbc-sdk]) (push) Waiting to run
Package Tests / test-javascript-packages (map[name:aitbc-token path:packages/solidity/aitbc-token]) (push) Waiting to run
Documentation Validation / validate-docs (push) Has been cancelled
Integration Tests / test-service-integration (push) Has been cancelled
Python Tests / test-python (push) Has been cancelled
Security Scanning / security-scan (push) Has been cancelled
CLI Tests / test-cli (push) Has been cancelled
- Bump version from 1.0 to 2.0 in OPENCLAW_AITBC_MASTERY_PLAN.md - Add comprehensive workflow integration section with links to multi-node setup, operations, marketplace, and production workflows - Document multi-chain runtime support (ait-testnet, ait-devnet) with shared database and chain-aware RPC - Document hub/follower topology with island management and P2P network architecture - Add new
52 lines
1.4 KiB
Python
Executable File
52 lines
1.4 KiB
Python
Executable File
#!/usr/bin/env python3
|
|
"""
|
|
Production Services Launcher
|
|
Launches AITBC production services from system locations
|
|
"""
|
|
|
|
import os
|
|
import sys
|
|
import subprocess
|
|
from pathlib import Path
|
|
|
|
def launch_service(service_name: str, script_path: str):
|
|
"""Launch a production service"""
|
|
print(f"Launching {service_name}...")
|
|
|
|
# Ensure log directory exists
|
|
log_dir = Path(f"/var/log/aitbc/production/{service_name}")
|
|
log_dir.mkdir(parents=True, exist_ok=True)
|
|
|
|
# Launch service
|
|
try:
|
|
subprocess.run([
|
|
sys.executable,
|
|
str(Path("/opt/aitbc/services") / script_path)
|
|
], check=True)
|
|
except subprocess.CalledProcessError as e:
|
|
print(f"Failed to launch {service_name}: {e}")
|
|
return False
|
|
except FileNotFoundError:
|
|
print(f"Service script not found: {script_path}")
|
|
return False
|
|
|
|
return True
|
|
|
|
def main():
|
|
"""Main launcher"""
|
|
print("=== AITBC Production Services Launcher ===")
|
|
|
|
services = [
|
|
("blockchain", "blockchain.py"),
|
|
("marketplace", "marketplace.py"),
|
|
("unified_marketplace", "unified_marketplace.py"),
|
|
]
|
|
|
|
for service_name, script_path in services:
|
|
if not launch_service(service_name, script_path):
|
|
print(f"Skipping {service_name} due to error")
|
|
continue
|
|
|
|
if __name__ == "__main__":
|
|
main()
|