修改端口信息
Some checks failed
构建并部署 AI Agent 服务 / deploy (push) Failing after 12m40s

This commit is contained in:
2026-04-16 00:31:33 +08:00
parent a92a220ff3
commit a5b8820d13
9 changed files with 114 additions and 96 deletions

View File

@@ -133,7 +133,7 @@ check_config() {
echo ""
echo "🔌 检查端口占用..."
for port in 8001 8501; do
for port in 8081 8082 8083 8501; do
if lsof -i :$port &> /dev/null; then
check_warn "端口 $port 已被占用"
else
@@ -280,7 +280,7 @@ start_embedding() {
# 启动 Python 服务
# =============================================================================
start_backend() {
echo -e "\n${BLUE}🚀 启动后端服务 (端口 8003)...${NC}"
echo -e "\n${BLUE}🚀 启动后端服务 (端口 8083)...${NC}"
cd "$PROJECT_DIR"
# 加载 .env 文件中的环境变量
@@ -289,7 +289,7 @@ start_backend() {
set +a
export PYTHONPATH="$PROJECT_DIR"
export BACKEND_PORT=8003
export BACKEND_PORT=8083
python app/backend.py &
BACKEND_PID=$!
echo -e "${GREEN}✓ 后端服务已启动 (PID: $BACKEND_PID)${NC}"