Files
mashangban/start.sh

22 lines
411 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
echo "正在启动人事共享服务中心'码'上办..."
# 检查Python环境
if ! command -v python3 &> /dev/null; then
echo "错误: 未找到Python3请先安装Python"
exit 1
fi
# 安装依赖
echo "检查依赖..."
pip3 install -r requirements.txt --quiet
# 初始化数据库
echo "初始化数据库..."
python3 init_db.py
# 启动服务
echo "启动服务..."
python3 run.py