Files
YG_FT_Platform/src/run.sh
WIN-JHFT4D3SIVT\caoxiaozhu 40ca89fad5 1. 修改了应用端口的问题
2. 增加了创建虚拟环境的脚本和删除虚拟环境的脚本
2026-01-26 14:33:00 +08:00

17 lines
416 B
Bash
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
# 启动远光软件微调平台后端服务
cd "$(dirname "$0")"
# 检查并安装依赖
if ! python3 -c "import flask" 2>/dev/null; then
echo "正在安装依赖..."
pip install -r ../requirements.txt
fi
# 启动服务
echo "启动后端服务..."
nohup python3 main.py &
# 日志会写入 logs/ 目录,同时输出到 stdoutDocker 日志可见)
echo "后端服务已在后台启动"