nomadro/deploy/README.md
eric 9f8fec1723 Ship portal PC/H5 acceptance, VIP ScrollReader, admin analytics and ops anchors.
Adds /api/health, ntfy notify on config save, /admin/analytics charts, and deploy smoke for miniprogram config/API.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-28 23:52:00 -05:00

63 lines
1.8 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

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.

# Nomadro 部署说明
## 服务器信息
- 主机: `82.157.112.245`(腾讯云 · `ubuntu`)
- 主域: `nomadro.cn`(Cloudflare DNS)
- 门户开发分支: `pre1`
- Next.js 代码目录: 以现网 PM2/systemd 配置为准(常见 `/var/www/nomadro*`)
- 分析 / 通知: [`observability/README.md`](./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`](./router/README.md)(若仍在用)。
`www.nomadro.com` 会自动 301 跳转到 `nomadro.com`。
## 首次部署
```bash
ssh ubuntu@82.157.112.245
# 目录与仓库以现网为准,示例:
cd /var/www/nomadro # 或现网实际路径
git fetch && git checkout pre1 && git pull
pnpm install && pnpm build
# 按现网用 PM2 / systemd 重启 Next 与 FastAPI
```
## 日常更新
```bash
ssh ubuntu@82.157.112.245
cd /var/www/nomadro # 现网路径
git pull origin pre1
pnpm install && pnpm build
# 重启对应进程后冒烟:/ /nav /book /community /vip /admin
```
## 服务管理
```bash
# 以现网进程管理器为准,例如:
pm2 status
# 或
systemctl status nomadro caddy nginx
journalctl -u nomadro -f
```