mirror of
https://github.com/CopilotKit/CopilotKit.git
synced 2026-09-14 16:26:20 +08:00
13 lines
258 B
Bash
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 $?
|