feat(backend): move product pricing to async persisted jobs
This commit is contained in:
parent
c869f88db2
commit
0e439b4ca7
18 changed files with 468 additions and 67 deletions
|
|
@ -9,7 +9,7 @@
|
|||
#
|
||||
# The innercontext user needs passwordless sudo for systemctl only:
|
||||
# /etc/sudoers.d/innercontext-deploy:
|
||||
# innercontext ALL=(root) NOPASSWD: /usr/bin/systemctl restart innercontext, /usr/bin/systemctl restart innercontext-node, /usr/bin/systemctl is-active innercontext, /usr/bin/systemctl is-active innercontext-node
|
||||
# innercontext ALL=(root) NOPASSWD: /usr/bin/systemctl restart innercontext, /usr/bin/systemctl restart innercontext-node, /usr/bin/systemctl restart innercontext-pricing-worker, /usr/bin/systemctl is-active innercontext, /usr/bin/systemctl is-active innercontext-node, /usr/bin/systemctl is-active innercontext-pricing-worker
|
||||
set -euo pipefail
|
||||
|
||||
SERVER="${DEPLOY_SERVER:-innercontext}" # ssh host alias or user@host
|
||||
|
|
@ -45,8 +45,8 @@ deploy_backend() {
|
|||
echo "==> [backend] Syncing dependencies..."
|
||||
ssh "$SERVER" "cd $REMOTE/backend && uv sync --frozen --no-dev --no-editable"
|
||||
|
||||
echo "==> [backend] Restarting service (alembic runs on start)..."
|
||||
ssh "$SERVER" "sudo systemctl restart innercontext && echo OK"
|
||||
echo "==> [backend] Restarting services (alembic runs on API start)..."
|
||||
ssh "$SERVER" "sudo systemctl restart innercontext && sudo systemctl restart innercontext-pricing-worker && echo OK"
|
||||
}
|
||||
|
||||
# ── Dispatch ───────────────────────────────────────────────────────────────
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue