Restart via systemctl when running as a service, set SPROUTCLAW_CODING_AGENT_DIR for the RPC subprocess, and add a frontend poll timeout for failed restarts. Co-authored-by: Cursor <cursoragent@cursor.com>
12 lines
314 B
Bash
Executable File
12 lines
314 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
OUT="$SCRIPT_DIR/backend/dist/sproutclaw-web-backend"
|
|
|
|
echo "[build] compiling Go backend -> $OUT"
|
|
cd "$SCRIPT_DIR/backend"
|
|
/usr/local/go/bin/go build -o "$OUT" ./cmd/server
|
|
chmod +x "$OUT"
|
|
echo "[build] done: $OUT"
|