nomadro/deploy
Eric 499f2d3e26 Ship coffeechat scheduling, notify PB access, and social/admin UI polish for .com.
Document the 2026-11-05 UI/UX upgrade and keep roster/live gates aligned with face-check and presence.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-05 18:19:37 +08:00
..
backup Integrate four verticals into nomadro portal with shared packages and API gateway. 2026-09-28 20:16:44 -05:00
caddy Mount nav/book/community as native App Router routes in one Next process. 2026-09-28 03:49:16 -05:00
caddy-sites feat: Umami/ntfy 可观测性栈与 WordPress AdSense 部署 2026-08-15 23:49:19 -05:00
coffee Ship social join profile + SeaweedFS avatars, notify/coffee, and .com audience stack. 2026-11-04 02:25:05 +08:00
nomadro-live Fix nomadro.live ads.txt always served (ignore zh cookie) 2026-08-25 06:34:49 -05:00
ntfy feat: Umami/ntfy 可观测性栈与 WordPress AdSense 部署 2026-08-15 23:49:19 -05:00
observability Ship social places/join UX, room-archive ops, and rich Markdown ntfy alerts. 2026-11-05 12:21:01 +08:00
router Ship social join profile + SeaweedFS avatars, notify/coffee, and .com audience stack. 2026-11-04 02:25:05 +08:00
social Ship coffeechat scheduling, notify PB access, and social/admin UI polish for .com. 2026-11-05 18:19:37 +08:00
umami feat: Umami/ntfy 可观测性栈与 WordPress AdSense 部署 2026-08-15 23:49:19 -05:00
wordpress Lengthen YouTube ops articles, add hero images, align trust pages 2026-08-25 05:16:26 -05:00
work Ship social join profile + SeaweedFS avatars, notify/coffee, and .com audience stack. 2026-11-04 02:25:05 +08:00
_rewrite_youtube_ops.py Rewrite all WordPress articles for YouTube channel operations (AdSense quality) 2026-08-25 04:56:35 -05:00
Caddyfile feat: Umami/ntfy 可观测性栈与 WordPress AdSense 部署 2026-08-15 23:49:19 -05:00
deploy.sh Redesign landing page and add Caddy deployment for nomadro.com 2026-07-11 11:25:50 -05:00
nomadro.service Redesign landing page and add Caddy deployment for nomadro.com 2026-07-11 11:25:50 -05:00
README.md Monorepo super-optimize: src layout, workspace scripts, docs. 2026-10-01 00:34:04 +08:00
setup-server.sh Fix Caddy install method and add deployment docs 2026-07-11 11:30:35 -05:00

Nomadro 部署说明

仓库布局(发版对齐)

产物 路径 线上
门户 Next src/ nomadro.cn
统一 API apps/api api.nomadro.cn
管理 SPA apps/admin admin.nomadro.cn
Taro apps/miniprogram/{h5,weapp,tt,xhs} 各端工具上传

服务器信息

  • 主机: 82.157.112.245(腾讯云 · ubuntu)
  • 主域: nomadro.cn(Cloudflare DNS)
  • 门户开发分支: pre1
  • Next.js 代码目录: 以现网 PM2/systemd 配置为准(常见 /var/www/nomadro*)
  • 分析 / 通知: observability/README.md
    • Umami / Uptime-Kuma / ntfy 等二级域见根 README

部署流程(强制)

  1. Windows 本地 pnpm dev 自测通过
  2. 部署到 82.157.112.245 并线上冒烟
  3. 更新根 README.md / 本文件

DNS(Cloudflare)

主域 nomadro.cn,常用二级:admin api vip pocketbase umami uptimekuma ntfy git nav ebook s3 minio 等。需要新子域时再加解析。

不影响现有业务

  • 改门户前先确认与 specials / 代理类业务端口无冲突
  • Caddy / 宝塔 Nginx 反代配置以现网为准

历史说明

此前部分脚本曾指向 107.173.30.245 / nomadro.com;当前生产以 82.157.112.245 + nomadro.cn 为准。旧路由/WordPress 分流文档见 router/README.md(若仍在用)。

www.nomadro.com 会自动 301 跳转到 nomadro.com。

日常更新(门户 Next)

推荐(Windows 本地 build → 分块上传 .next,避免在服务器跑 pnpm build 把机器打满):

pnpm build
python deploy/observability/_upload_next_chunked.py

备选:python deploy/observability/_upload_next_deploy.py(会先 git pull pre1;打包会跳过 .next/dev)。

冒烟清单:/api/health /api/config /book/read /vip/ebook/read /admin;小程序依赖 https://nomadro.cn/api/config + https://api.nomadro.cn。

观测 / ntfy / Umami / Kuma:见 observability/README.md。

首次部署

ssh ubuntu@82.157.112.245
# 目录与仓库以现网为准,示例:
cd /var/www/nomadro.cn
git fetch && git checkout pre1 && git pull
pnpm install && pnpm build   # 仅首次或机器空闲时;日常优先本地 build+上传
sudo systemctl restart nomadro.service

服务管理

systemctl status nomadro
journalctl -u nomadro -f
# 观测健康脚本
sudo bash /var/www/nomadro.cn/deploy/observability/healthcheck.sh