chore(env): add AUTH_SECRET for next-auth across environments

- Add per-environment AUTH_SECRET (dev/test/prod) for next-auth v4 JWT signing
- Temporarily redirect next start stdout/stderr to LOG_FILE in post-receive hook for server error debugging
This commit is contained in:
2026-06-12 18:42:43 +08:00
parent 546e5f4b3d
commit c90d2a5139
4 changed files with 15 additions and 4 deletions
+3 -2
View File
@@ -53,9 +53,10 @@ echo "=== stop DONE @ $(date -u +%Y-%m-%dT%H:%M:%SZ) ===" >> "$LOG_FILE"
echo "" >> "$LOG_FILE"
# pnpm run start → **后台**跑(nohup ... &),long-running 进程
# 出****> /dev/null 2>&1)—— 真实 next 日志要看 next 自身 stdout/stderr**不**在本任务范围
# **临**时**改**next 输**出****接**到 LOG_FILE**为**排**查** Server error
# —— 排**查**完**后**改回 `> /dev/null 2>&1`
echo "=== start LAUNCH @ $(date -u +%Y-%m-%dT%H:%M:%SZ) ===" >> "$LOG_FILE"
nohup pnpm run start > /dev/null 2>&1 &
nohup pnpm run start >> "$LOG_FILE" 2>&1 &
START_PID=$!
echo "=== start PID=$START_PID @ $(date -u +%Y-%m-%dT%H:%M:%SZ) ===" >> "$LOG_FILE"