ERP/start_with_ai.sh
2026-01-03 19:18:40 +08:00

21 lines
493 B
Bash
Executable File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/bin/bash
# 启动带有AI服务的生产管理系统
echo "正在启动生产管理系统包含AI智能报表功能..."
# 设置环境变量
export AI_PROVIDER=qwen
export QWEN_API_KEY=sk-9bf015da696048eea231085615892b68
export QWEN_BASE_URL=https://dashscope.aliyuncs.com/compatible-mode/v1
# 激活虚拟环境
source /home/hyx/work/.venv/bin/activate
# 切换到server目录
cd /home/hyx/work/生产管理系统/server
# 启动应用
echo "启动服务器..."
python3 app.py