#!/usr/bin/env sh
set -e

# Start Python AI service in background on 8013
if [ -f "/app/ai/tech_stack_service.py" ]; then
  echo "Starting Template Manager AI (FastAPI) on 8013..."
  python3 /app/ai/tech_stack_service.py &
else
  echo "AI service not found at /app/ai/tech_stack_service.py; skipping AI startup"
fi

# Start Node Template Manager on 8009 (foreground)
echo "Starting Template Manager (Node) on 8009..."
npm start


