Files
2026-07-13 12:58:18 +08:00

18 lines
343 B
Bash
Executable File

#!/bin/bash
set -e
# Start .NET agent on port 8000
cd /app/agent
ASPNETCORE_URLS="http://0.0.0.0:8000" ./ProverbsAgent &
AGENT_PID=$!
cd /app
# Start Next.js frontend
PORT=${PORT:-3000} npx next start --port ${PORT:-3000} &
NEXT_PID=$!
wait -n $AGENT_PID $NEXT_PID
EXIT_CODE=$?
kill $AGENT_PID $NEXT_PID 2>/dev/null || true
exit $EXIT_CODE