#!/bin/sh # Log file for debugging LOG_FILE="/app/warp-log.txt" # Start the Cloudflare Warp daemon in the background { echo "Starting Cloudflare Warp..." warp-cli set-mode proxy warp-cli set-proxy-port 40000 warp-cli connect sleep 5 echo "Cloudflare Warp status:" warp-cli status } > $LOG_FILE 2>&1 & # Run your FastAPI application echo "Starting FastAPI application..." exec python run.py