Files
copilotkit__copilotkit/showcase/packages/langroid/entrypoint.sh

13 lines
258 B
Bash

#!/bin/bash
set -e
# Start agent backend
python -m uvicorn agent_server:app --host 0.0.0.0 --port 8000 &
# Start Next.js frontend (PORT defaults to 10000 for Render)
npx next start --port ${PORT:-10000} &
# Wait for either process to exit
wait -n
exit $?