初始提交:人事共享服务中心钉钉登录功能
This commit is contained in:
21
start.sh
Executable file
21
start.sh
Executable file
@@ -0,0 +1,21 @@
|
||||
#!/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
|
||||
Reference in New Issue
Block a user