From a192767389e7801833bb5bacecae54dcb1a2d983 Mon Sep 17 00:00:00 2001 From: whyour Date: Mon, 10 May 2021 10:49:27 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=90=AF=E5=8A=A8bot?= =?UTF-8?q?=E5=91=BD=E4=BB=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- shell/bot.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shell/bot.sh b/shell/bot.sh index ae223ad1..c76589d4 100644 --- a/shell/bot.sh +++ b/shell/bot.sh @@ -18,11 +18,11 @@ echo echo -e "3、安装python3依赖...\n" pip3 config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple cp -f "$repo_path/jbot/requirements.txt" "$dir_root" -pip3 install -r requirements.txt +pip3 --default-timeout=100 install -r requirements.txt --no-cache-dir echo echo -e "4、启动bot程序...\n" -pm2 restart jbot 2>/dev/null || pm2 start jbot -n $dir_root/jbot --interpreter=python3 -- -m +pm2 restart jbot 2>/dev/null || pm2 start $dir_root/jbot -n jbot --interpreter=python3 -- -m echo exit 0