feat: 初始化 vps-manager 资产管理系统(Asset/VPSDetail/DomainDetail/AIAccount 模型 + FastAPI 骨架)

This commit is contained in:
gouki
2026-08-01 13:18:04 +00:00
commit e6047e36d5
9 changed files with 225 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
#!/usr/bin/env bash
# vps-manager 启动脚本(部署于 Tailscale cc1 节点 100.89.0.11
# 用法:./run.sh # 前台启动
# ./run.sh --reload # 开发模式(热重载)
cd "$(dirname "$0")" || exit 1
if [ ! -d ".venv" ]; then
echo "[init] 创建虚拟环境并安装依赖..."
python3 -m venv .venv
.venv/bin/pip install -r requirements.txt
fi
exec .venv/bin/uvicorn app.main:app --host 0.0.0.0 --port 8000 "$@"