upd
This commit is contained in:
6
Jenkinsfile
vendored
6
Jenkinsfile
vendored
@@ -23,9 +23,9 @@ pipeline {
|
|||||||
ssh -o StrictHostKeyChecking=no root@${VPS_HOST} "mkdir -p ${BOT_DIR}"
|
ssh -o StrictHostKeyChecking=no root@${VPS_HOST} "mkdir -p ${BOT_DIR}"
|
||||||
scp -o StrictHostKeyChecking=no -r * root@${VPS_HOST}:${BOT_DIR}/
|
scp -o StrictHostKeyChecking=no -r * root@${VPS_HOST}:${BOT_DIR}/
|
||||||
|
|
||||||
# Setup and restart on VPS
|
# Setup and restart on VPS (force bash)
|
||||||
ssh -o StrictHostKeyChecking=no root@${VPS_HOST} << 'ENDSSH'
|
ssh -o StrictHostKeyChecking=no root@${VPS_HOST} /bin/bash << 'ENDSSH'
|
||||||
cd ${BOT_DIR}
|
cd /srv/fymious-tg-bot
|
||||||
|
|
||||||
# Create venv if needed
|
# Create venv if needed
|
||||||
if [ ! -d ".venv" ]; then
|
if [ ! -d ".venv" ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user