#!/bin/sh # Start the three services: R plumber (8001) -> FastAPI agent (8000) -> Shiny UI (7860) Rscript r/run_api.R & python -m uvicorn statagent.api:app --host 127.0.0.1 --port 8000 & sleep 8 exec Rscript scripts/run_app.R