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:
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user