Commit 643f7e28 authored by Daniel P茅rez Fern谩ndez's avatar Daniel P茅rez Fern谩ndez 馃暥
Browse files

馃帀 Deploy Config Finish 馃帀

parent 0761ed88
Pipeline #92952323 passed with stage
in 35 seconds
......@@ -7,6 +7,8 @@ variables:
SERVER_PORT: $SERVER_PORT
SSH_USERNAME: $SSH_USERNAME
DEPLOY_KEY : $DEPLOY_KEY
FILE_CONFIG_BOT : $FILE_CONFIG_BOT
CP_FILE_CONFIG_BOT : $CP_FILE_CONFIG_BOT
stages:
- deploy
......@@ -27,4 +29,4 @@ deploy:
- '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config'
script:
- ssh -o StrictHostKeyChecking=no "$SSH_USERNAME"@"$SERVER_IP" -p "$SERVER_PORT" "cd ${WORK_DIR}; git init; git clone -b ${BRANCH} ${REPO};"
\ No newline at end of file
- ssh -o StrictHostKeyChecking=no "$SSH_USERNAME"@"$SERVER_IP" -p "$SERVER_PORT" "cd ${WORK_DIR}; pm2 stop openbot; rm -rf open-telegram-bot-nodejs; git init; git clone -b ${BRANCH} ${REPO}; cp ${FILE_CONFIG_BOT} ${CP_FILE_CONFIG_BOT}; npm install; pm2 restart openbot"
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment