Add /api/health and harden Docker deploy script for API route rollout.

404 on /api/ai indicates stale container; deploy script now uses --no-cache, stops PM2/port conflicts, and verifies /api/health.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-06-10 22:42:28 +08:00
parent dba0245cb1
commit 38bbc7145a
4 changed files with 46 additions and 6 deletions
+1
View File
@@ -27,6 +27,7 @@ RUN addgroup --system --gid 1001 nodejs \
# standalone 产物
COPY --from=builder /app/.next/standalone ./
COPY --from=builder /app/.next/static ./.next/static
COPY --from=builder /app/public ./public
# 卦辞 Markdown(运行时读取)
COPY --from=builder /app/content ./content