Files
MBTI_wang/scripts/path1_api.sh
卡若 ce55c48c64 feat: 同步今日小程序与后台迭代版本
集中提交今日 API、管理端、小程序与部署文档调整,确保 Gitea 主分支与本地最新开发版本一致。

Made-with: Cursor
2026-04-20 11:07:55 +08:00

10 lines
343 B
Bash
Executable File
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/usr/bin/env bash
# 路径一:一键调用宝塔 API 上传 API 相关文件(依赖 scripts/.env.bt 或环境变量 BT_API_KEY
set -euo pipefail
ROOT="$(cd "$(dirname "$0")/.." && pwd)"
cd "$ROOT"
if [[ ! -f scripts/.env.bt ]]; then
cp scripts/env.bt.example scripts/.env.bt
fi
exec python3 scripts/deploy_mbti_bt_api.py --api-only