debug: add nginx config test and file check

This commit is contained in:
tinkle-community
2026-01-06 18:44:24 +08:00
parent 4c097f7190
commit 165c0b1b5d
+8
View File
@@ -67,6 +67,14 @@ fi
echo "✅ Backend started (PID: $BACKEND_PID)"
# 测试 nginx 配置
echo "🔍 Testing nginx config..."
nginx -t 2>&1
# 检查前端文件是否存在
echo "📁 Checking frontend files..."
ls -la /usr/share/nginx/html/ | head -10
# 启动 nginx(前台运行)
echo "🌐 Starting nginx on port $PORT..."
exec nginx -g "daemon off;"