添加依赖加载功能
This commit is contained in:
@@ -7,6 +7,9 @@ cd /home/liuwei/wechatbot/WeChatRobot
|
|||||||
git pull origin feature-855 # 根据需要拉取对应的分支
|
git pull origin feature-855 # 根据需要拉取对应的分支
|
||||||
#切换虚拟环境
|
#切换虚拟环境
|
||||||
source venv/bin/activate
|
source venv/bin/activate
|
||||||
|
|
||||||
|
pip install -r requirements.txt
|
||||||
|
|
||||||
# 查找并杀死当前 main.py 进程
|
# 查找并杀死当前 main.py 进程
|
||||||
CURRENT_PID=$(ps aux | grep 'main.py' | grep -v grep | awk '{print $2}')
|
CURRENT_PID=$(ps aux | grep 'main.py' | grep -v grep | awk '{print $2}')
|
||||||
if [ -n "$CURRENT_PID" ]; then
|
if [ -n "$CURRENT_PID" ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user