From 165c0b1b5d5b7ebc216f9b0a5d3dc3e178484aca Mon Sep 17 00:00:00 2001 From: tinkle-community Date: Tue, 6 Jan 2026 18:44:24 +0800 Subject: [PATCH] debug: add nginx config test and file check --- railway/start.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/railway/start.sh b/railway/start.sh index 1816b8c5..a0848d0f 100644 --- a/railway/start.sh +++ b/railway/start.sh @@ -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;"