更新启动bot命令

This commit is contained in:
whyour 2021-05-10 10:49:27 +08:00
parent 4983f31f60
commit a192767389

View File

@ -18,11 +18,11 @@ echo
echo -e "3、安装python3依赖...\n" echo -e "3、安装python3依赖...\n"
pip3 config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple pip3 config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
cp -f "$repo_path/jbot/requirements.txt" "$dir_root" 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
echo -e "4、启动bot程序...\n" 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 echo
exit 0 exit 0