新增自动化部署:Gitea Actions + systemd + gunicorn
Some checks failed
Deploy / deploy (push) Failing after 1s

- .gitea/workflows/deploy.yml:push main 自动触发部署
- requirements.txt:Python 依赖清单
- deploy/opc-manager.service:systemd 服务(gunicorn --preload -w 4)
- deploy/README.md:完整部署指南
- deploy/服务器配置任务提示词.md:给服务器管理 Agent 的操作提示词
- health 接口简化返回 {ok, service}
This commit is contained in:
mac
2026-06-23 19:33:16 +08:00
parent 39f2b679a1
commit 25da1453be
6 changed files with 385 additions and 1 deletions

View File

@@ -1046,7 +1046,7 @@ def delete_file(file_id):
@app.route("/api/health")
def health():
return jsonify({"ok": True, "db": str(DB_PATH)})
return jsonify({"ok": True, "service": "opc-manager"})
init_db()