接入自建后端 + Gitea CI/CD
部署到群晖 / deploy (push) Failing after 6m22s

- 新增 server/:Node + Express + SQLite + node-cron 实现登录、纪念日 CRUD 和定时订阅消息推送
- 新增 .gitea/workflows/deploy.yml:推送即触发群晖 Docker 部署,监听 15002
- utils/api.js:自动按 envVersion 切换本地/线上 BASE_URL
- app.js 与 add-anniversary.js 移除 wx.cloud 调用,改走自建后端
- cloudfunctions/ 暂保留以便回滚
- 一并提交此前未入库的首页 / 设置页 / 日历 / 万年历等改造

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
yuming
2026-06-01 15:44:09 +08:00
parent 6747ade9c4
commit 3965e542fc
49 changed files with 5616 additions and 670 deletions
+18
View File
@@ -0,0 +1,18 @@
# 微信小程序凭证(在微信公众平台 → 开发管理 → 开发设置 中获取)
WX_APPID=
WX_APPSECRET=
# 订阅消息模板 ID(保持和云函数 sendReminder 中的 TEMPLATE_ID 一致)
WX_TEMPLATE_ID=6J7Stt-lu7DKU6jblJ0nZGq_D81z5glnksf7qWfy5Yw
# 小程序版本:开发版 developer / 体验版 trial / 正式版 formal
WX_MINIPROGRAM_STATE=formal
# 服务监听端口
PORT=3000
# SQLite 数据库文件路径(容器内路径,挂载到宿主机 data/ 目录)
DB_PATH=/app/data/birthday.db
# 定时任务 cron 表达式(默认每天 9:00)
REMINDER_CRON=0 9 * * *