#!/bin/bash set -e echo "=== Starting Redis (2GB max, LRU eviction) ===" redis-server \ --daemonize yes \ --maxmemory 2gb \ --maxmemory-policy allkeys-lru \ --save "" \ --loglevel warning echo "=== Redis started on localhost:6379 ===" redis-cli ping echo "=== Starting FastAPI on port 7860 ===" exec uvicorn main:app --host 0.0.0.0 --port 7860