File size: 467 Bytes
b24d6d6
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/bash
echo "============================================"
echo " MiroFish Engine - Starting on HF Spaces"
echo "============================================"

# Start Flask backend in background
echo "[MiroFish] Starting Flask backend on port 5001..."
cd /app/backend && python run.py &

# Wait a moment for Flask to initialize
sleep 3

# Start nginx in foreground (keeps container alive)
echo "[MiroFish] Starting nginx on port 7860..."
nginx -g "daemon off;"