Commit 26aa4efc authored by Daniel Pérez Fernández's avatar Daniel Pérez Fernández 🕶
Browse files

Minor Fix

parent 643f7e28
Pipeline #92953262 passed with stage
in 1 minute and 51 seconds
......@@ -9,6 +9,7 @@ variables:
DEPLOY_KEY : $DEPLOY_KEY
FILE_CONFIG_BOT : $FILE_CONFIG_BOT
CP_FILE_CONFIG_BOT : $CP_FILE_CONFIG_BOT
BOT_INDEX : $BOT_INDEX
stages:
- deploy
......@@ -29,4 +30,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}; 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
- 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}; cd ${BOT_INDEX}; 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