File size: 458 Bytes
3d4271b | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | #!/bin/bash
echo "=== Starting SQLite and FastAPI ==="
# Define the persistent directory
PERSIST_DIR="/data"
mkdir -p $PERSIST_DIR
# Start SQLite server in background
echo "🚀 Starting SQLite server on port 8000..."
python3 sqlite_server.py &
SQLITE_PID=$!
# Wait for SQLite server to start
sleep 2
# Start FastAPI app
echo "🌐 Starting FastAPI app on port 7860..."
python3 app.py &
APP_PID=$!
# Keep both processes alive
wait $SQLITE_PID $APP_PID
|