auto-save 2026-05-15 14:47 (+6, ~5)

This commit is contained in:
2026-05-15 14:48:01 +08:00
parent ce04cf4b60
commit 27e200239d
12 changed files with 333 additions and 20 deletions

View File

@@ -533,6 +533,16 @@
<td><code>./scripts/stop-dev-background.sh</code></td>
<td><code>.pids/</code> 里的 PID 停止后台前端 / 后端进程。</td>
</tr>
<tr>
<td>生产站点</td>
<td><code>https://marketing.skg.com</code></td>
<td>公司域名已解析到 VPS <code>76.13.31.179</code>。线上由既有 Coolify / Traefik 负责 HTTPS 入口,项目 <code>web</code> 容器用 Nginx 承载静态前端并把 <code>/api/</code> 反代到 FastAPI。</td>
</tr>
<tr>
<td>生产部署</td>
<td><code>docker compose -f docker-compose.prod.yml --env-file deploy/.env.production up -d --build</code></td>
<td>服务器目录为 <code>/opt/skg-marketing-studio</code>;后端任务文件挂载到 <code>./data/jobs</code>,真实 Key 只放服务器 <code>deploy/.env.production</code></td>
</tr>
<tr>
<td>前端开发服务</td>
<td><code>cd web && pnpm dev</code></td>
@@ -929,6 +939,17 @@ SubjectAsset {
<h2>变更记录</h2>
<p>这个记录不是 git log 的替代品。它记录“产品理解发生了什么变化、影响了哪些源码、你以后描述需求时该怎么说”。后续每次改功能都要补一条。</p>
<div class="changelog">
<article class="change">
<header>
<h3>2026-05-15 · 公司域名生产部署配置</h3>
<span class="tag gray">Runtime</span>
<span class="tag blue">Deploy</span>
</header>
<div class="body">
<p><strong>改动:</strong>把生产入口确定为 <code>https://marketing.skg.com</code>DNS 已解析到 VPS <code>76.13.31.179</code>。新增 Docker Compose 生产配置:前端用 Next 静态导出 + Nginx<code>/api/</code> 反代到 FastAPI后端任务目录持久化到服务器 <code>./data/jobs</code>Traefik 通过既有 <code>coolify</code> 外部网络接管 80/443。</p>
<p><strong>影响:</strong><code>Dockerfile.web</code><code>Dockerfile.api</code><code>docker-compose.prod.yml</code><code>deploy/nginx.conf</code><code>deploy/.env.production.example</code><code>docs/deploy-vps.md</code><code>.project.json</code><code>RULES.md</code><code>docs/source-analysis.html</code></p>
</div>
</article>
<article class="change">
<header>
<h3>2026-05-15 · 本地启动改为后台不弹 Terminal</h3>