mirror of
https://github.com/NoFxAiOS/nofx.git
synced 2026-07-16 09:11:03 +08:00
debug: add nginx config test and file check
This commit is contained in:
@@ -67,6 +67,14 @@ fi
|
|||||||
|
|
||||||
echo "✅ Backend started (PID: $BACKEND_PID)"
|
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(前台运行)
|
# 启动 nginx(前台运行)
|
||||||
echo "🌐 Starting nginx on port $PORT..."
|
echo "🌐 Starting nginx on port $PORT..."
|
||||||
exec nginx -g "daemon off;"
|
exec nginx -g "daemon off;"
|
||||||
|
|||||||
Reference in New Issue
Block a user