🔧 修复:前端使用 build 目录启动
This commit is contained in:
2
start.sh
2
start.sh
@@ -35,7 +35,7 @@ sleep 3
|
|||||||
|
|
||||||
# 启动前端
|
# 启动前端
|
||||||
echo "🚀 启动前端服务 (端口 4000)..."
|
echo "🚀 启动前端服务 (端口 4000)..."
|
||||||
cd "$FRONTEND_DIR"
|
cd "$FRONTEND_DIR/build"
|
||||||
nohup python3 -m http.server 4000 --bind 127.0.0.1 > /tmp/monitoring-frontend.log 2>&1 &
|
nohup python3 -m http.server 4000 --bind 127.0.0.1 > /tmp/monitoring-frontend.log 2>&1 &
|
||||||
FRONTEND_PID=$!
|
FRONTEND_PID=$!
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user