upd
This commit is contained in:
6
Jenkinsfile
vendored
6
Jenkinsfile
vendored
@@ -27,12 +27,12 @@ pipeline {
|
|||||||
ssh -o StrictHostKeyChecking=no root@${VPS_HOST} /bin/bash << 'ENDSSH'
|
ssh -o StrictHostKeyChecking=no root@${VPS_HOST} /bin/bash << 'ENDSSH'
|
||||||
cd /srv/fymious-tg-bot
|
cd /srv/fymious-tg-bot
|
||||||
|
|
||||||
# Create venv if needed
|
# Remove corrupted venv and recreate
|
||||||
if [ ! -d ".venv" ]; then
|
rm -rf .venv
|
||||||
python3 -m venv .venv
|
python3 -m venv .venv
|
||||||
fi
|
|
||||||
|
|
||||||
# Install dependencies
|
# Install dependencies
|
||||||
|
.venv/bin/pip install --upgrade pip
|
||||||
.venv/bin/pip install -r requirements.txt
|
.venv/bin/pip install -r requirements.txt
|
||||||
|
|
||||||
# Restart service
|
# Restart service
|
||||||
|
|||||||
Reference in New Issue
Block a user