refactor: update scripts for kebab-case service binary names

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
jgrusewski
2026-03-04 22:08:31 +01:00
parent e047c1eea3
commit d3ed2e2540
5 changed files with 30 additions and 30 deletions

View File

@@ -82,14 +82,14 @@ BACKTESTING_PORT=50052
ML_TRAINING_PORT=50053
# Kill any existing services
pkill -f "trading_service" || true
pkill -f "backtesting_service" || true
pkill -f "ml_training_service" || true
pkill -f "trading-service" || true
pkill -f "backtesting-service" || true
pkill -f "ml-training-service" || true
sleep 2
# Step 4: Build and start the 3 standalone services
echo -e "${BLUE}🏗️ Building services...${NC}"
if ! cargo build --release --bin trading_service --bin backtesting_service -p ml_training_service; then
if ! cargo build --release --bin trading-service --bin backtesting-service -p ml_training_service; then
echo -e "${RED}❌ Failed to build services. Check compilation errors.${NC}"
exit 1
fi
@@ -101,21 +101,21 @@ echo -e "${BLUE}🚀 Starting standalone services...${NC}"
# Start Trading Service (port 50051)
echo "📈 Starting Trading Service..."
cargo run --release --bin trading_service &
cargo run --release --bin trading-service &
TRADING_PID=$!
echo $TRADING_PID > .trading_service.pid
echo $TRADING_PID > .trading-service.pid
# Start Backtesting Service (port 50052)
echo "🔄 Starting Backtesting Service..."
cargo run --release -p backtesting_service &
BACKTESTING_PID=$!
echo $BACKTESTING_PID > .backtesting_service.pid
echo $BACKTESTING_PID > .backtesting-service.pid
# Start ML Training Service (port 50053)
echo "🧠 Starting ML Training Service..."
cargo run --release -p ml_training_service &
ML_TRAINING_PID=$!
echo $ML_TRAINING_PID > .ml_training_service.pid
echo $ML_TRAINING_PID > .ml-training-service.pid
# Step 6: Wait for all services to be ready
echo -e "${YELLOW}⏳ Waiting for services to start...${NC}"