a2ae74d582
- Backend: auth refresh reuse, schedule/retry/sync/agent/files fixes - Frontend: push WS, files ETag browse, vite build assets - Docs: audit/changelog, production deploy gate, bug scan registry B7-77 - Deploy: deploy-production.sh, prune assets, gate logs
10 lines
386 B
Bash
10 lines
386 B
Bash
#!/usr/bin/env bash
|
|
# 在 SOCKS5 代理下执行命令(Docker 拉镜像、npm 等)
|
|
# 用法: scripts/with-proxy.sh docker compose pull
|
|
# scripts/with-proxy.sh npm ci # 在 frontend 目录执行时先 cd frontend
|
|
|
|
set -euo pipefail
|
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
CONF="${SCRIPT_DIR}/proxychains-docker.conf"
|
|
exec proxychains4 -q -f "${CONF}" "$@"
|