From 4a6a0f55d31c2a6573763b5676742b26c28970b6 Mon Sep 17 00:00:00 2001 From: liuwei Date: Mon, 12 May 2025 16:16:57 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=BE=9D=E8=B5=96=E5=8A=A0?= =?UTF-8?q?=E8=BD=BD=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- restart.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/restart.sh b/restart.sh index 8b1a633..17403ff 100644 --- a/restart.sh +++ b/restart.sh @@ -7,6 +7,9 @@ cd /home/liuwei/wechatbot/WeChatRobot git pull origin feature-855 # 根据需要拉取对应的分支 #切换虚拟环境 source venv/bin/activate + +pip install -r requirements.txt + # 查找并杀死当前 main.py 进程 CURRENT_PID=$(ps aux | grep 'main.py' | grep -v grep | awk '{print $2}') if [ -n "$CURRENT_PID" ]; then