File size: 562 Bytes
21cee38
 
 
 
72945a9
21cee38
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash
set -e

echo "[StateStrike] Starting honeypot on port 8000..."
uvicorn honeypot.app:app --host 0.0.0.0 --port 8000 --workers 4 &
HONEYPOT_PID=$!

echo "[StateStrike] Waiting for honeypot..."
for i in $(seq 1 30); do
  if curl -sf http://localhost:8000/health > /dev/null 2>&1; then
    echo "[StateStrike] Honeypot ready."
    break
  fi
  sleep 1
done

echo "[StateStrike] Starting environment server on port 7860..."
export HONEYPOT_URL="http://localhost:8000"
uvicorn statestrike_env.environment:app --host 0.0.0.0 --port 7860

wait $HONEYPOT_PID