Files
mashangban/start_dingtalk.sh

34 lines
1.0 KiB
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
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
# 设置钉钉配置(请根据实际情况修改)
export DINGTALK_APP_KEY="dingx1oxerkw6vfzwzsc"
export DINGTALK_APP_SECRET="_Ap2DwtSm2nyuZdid8DwFdAc4rLWuXYCbSBTJrwuwbLdyFcPtNabrs4lmnBDdoz5"
export DINGTALK_AGENT_ID="4583595778"
export DINGTALK_CORP_ID="dingaac5c6bd7188ca3935c2f4657eb6378f"
export DINGTALK_TARGET_URL="https://www.askill.top/requirement-collection"
# 启动服务
echo "启动服务..."
echo ""
echo "========================================="
echo "钉钉入口地址: http://your-domain/requirement-collection/dingtalk/"
echo "需求收集地址: http://your-domain/requirement-collection/"
echo "========================================="
python3 run.py