加入虚拟环境

This commit is contained in:
liuwei
2025-05-06 10:49:18 +08:00
parent 76764bb30a
commit e8205e9a76

View File

@@ -5,7 +5,8 @@ cd /home/liuwei/wechatbot/WeChatRobot
# 拉取最新代码
git pull origin feature-855 # 根据需要拉取对应的分支
#切换虚拟环境
source venv/bin/activate
# 查找并杀死当前 main.py 进程
CURRENT_PID=$(ps aux | grep 'main.py' | grep -v grep | awk '{print $2}')
if [ -n "$CURRENT_PID" ]; then