SPB Git forge
38commits 1branches 0releases
338.7 MBsize
maindefault branch
2 h agolast push
HTML 53.9% TypeScript 44.5% JavaScript 0.6% SQL 0.5%

post-upgrade runbook: correct cli invocation

Simon-Pierre Boucher committed 20 days ago (Sep 12, 2026) parent 1b41c80

1 changed file +2 −2

modified deploy/bin/post-upgrade.sh +2 −2
@@ -16,7 +16,7 @@ has() { local s; for s in "${steps[@]}"; do [[ $s == "$1" ]] && return 0; done;
16 16 # `cli` service runs the worker image; scripts/ is not baked into the image → bind-mount it
17 17 CLI="$(compose_prefix data) run --rm -T"
18 18 CLI_SCRIPTS="$(compose_prefix data) run --rm -T -v $REMOTE_DIR/scripts:/app/scripts cli node /app/node_modules/tsx/dist/cli.mjs /app/scripts"
19 −dci() { remote data "$CLI cli $*"; }
19 +dci() { remote data "$CLI cli cli $*"; }
20 20 script() { remote data "$CLI_SCRIPTS/$*"; }
21 21 psqlq() { remote data "docker exec -i dci-postgres-1 psql -U dci -d dci -Atc \"$1\""; }
22 22
@@ -33,7 +33,7 @@ if has reprocess; then
33 33 log "reprocess: every connector, stale documents only (offline)"
34 34 ids=$(psqlq "select string_agg(id, ' ' order by id) from connectors where enabled")
35 35 for id in $ids; do
36 − remote data "$CLI cli reprocess $id --stale 2>&1 | grep -E 'reprocess → |selected' | tail -2" || true
36 + remote data "$CLI cli cli reprocess $id --stale 2>&1 | grep -E 'reprocess → |selected' | tail -2" || true
37 37 done
38 38 fi
39 39 if has unbacked; then
40 40