Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions deploy/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,13 @@ say "changed: $(echo "$CHANGED" | tr '\n' ' ')"

changed() { echo "$CHANGED" | grep -qE "$1"; }

# 1. Python deps
# 1. Python deps. MUST include the extras the box runs (the search API needs the
# `serve` extra: torch, transformers, faiss-cpu). A bare `uv sync` installs only
# the light core and would UNINSTALL torch/faiss, breaking the serves on their
# next restart. `all` = embed+serve+index (no gpu — there's no CUDA here).
if changed '^uv\.lock$'; then
say "uv.lock changed -> uv sync"
uv sync >>"$LOG" 2>&1 || say "WARN: uv sync failed"
say "uv.lock changed -> uv sync --extra all"
uv sync --extra all >>"$LOG" 2>&1 || say "WARN: uv sync failed"
fi

# 2. Agent backend — cheap restart, safe to automate.
Expand Down
Loading