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.
XUGOU 系统现在采用单一 Worker 部署方式,前后端集成在一个 Worker 中,并推荐使用 GitHub Actions 实现自动化部署,流程更简单、更安全。
main
创建 D1 数据库
xugou_db
创建 API 令牌
Fork 仓库
修改 wrangler.toml 文件(如果尚未修改)
wrangler.toml
d1_databases
[[d1_databases]] binding = "DB" database_name = "${D1_DATABASE_NAME}" # 使用占位符 database_id = "${D1_DATABASE_ID}" # 使用占位符
配置 GitHub Secrets
CF_API_TOKEN
CF_ACCOUNT_ID
D1_DATABASE_ID
D1_DATABASE_NAME
配置完成后,部署将自动进行!
部署过程大约需要 1-2 分钟。完成后,您的 XUGOU 监控平台就可以通过 Cloudflare Worker 的 URL 访问了。
https://<你的项目名>.<你的workers.dev子域>.workers.dev
xugou-app
Deleting the wiki page "部署指南" cannot be undone. Continue?