Add install script for clone-first one-click deployment.

Prompt for repo URL and install directory, auto git clone, then run project setup. Keep deploy.py for in-repo updates only.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-07-12 11:52:57 +08:00
parent 3149770887
commit 6897f88afd
9 changed files with 403 additions and 44 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
# 复制本文件为 .env 后按需修改(.env 勿提交到 Git)
# 与 app.py 同目录;程序启动时自动加载。
# 也可运行 python scripts/deploy.py 自动生成本文件并填入默认值。
# 也可运行 python scripts/install.py 自动克隆并部署(无需预先 git clone)
# 必填(长期运行):随机字符串,用于会话与 CSRF。
# 一键部署脚本会自动生成;手动生成:openssl rand -hex 32