feat: 初始化 vps-manager 资产管理系统(Asset/VPSDetail/DomainDetail/AIAccount 模型 + FastAPI 骨架)
This commit is contained in:
@@ -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 "$@"
|
||||
Reference in New Issue
Block a user