运行配置

This commit is contained in:
lhx
2025-09-27 10:46:09 +08:00
parent dff6c8cd91
commit 7a635eb414
6 changed files with 57 additions and 5 deletions

View File

@@ -5,7 +5,7 @@
# 默认端口: 8000
# 设置端口号默认为8000
PORT=${1:-8000}
PORT=${1:-3002}
echo "=== 铁路项目管理系统启动脚本 ==="
echo "端口: $PORT"
@@ -66,7 +66,6 @@ check_dependencies() {
python3 -c "import fastapi, uvicorn" 2>/dev/null
if [ $? -ne 0 ]; then
echo "错误: 缺少必要的依赖包 (fastapi, uvicorn)"
echo "请运行: pip install -r requirements.txt"
exit 1
fi
}