File size: 343 Bytes
8b41737
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash
set -e

# Start Flask backend in background
echo "Starting Flask backend..."
cd /app
gunicorn --bind 127.0.0.1:5000 --workers 1 --timeout 120 backend.app:app &
BACKEND_PID=$!

# Wait for backend to be ready
echo "Waiting for backend to start..."
sleep 3

# Start nginx in foreground
echo "Starting nginx..."
nginx -g 'daemon off;'