Path to pm2
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2022-03-30 03:30:38 +03:00
parent 55ecb3b12b
commit 0b808328f4

View File

@@ -26,6 +26,33 @@ trigger:
--- ---
# kind: pipeline
# type: ssh
# name: restart backend
# server:
# host: 188.242.77.16:8822
# user: ubuntu
# ssh_key:
# from_secret: ssh_private_key_rpi
# clone:
# disable: true
# steps:
# - name: restart backend
# commands:
# - pm2 restart warframe-center-gather
# depends_on:
# - install dependencies
# trigger:
# branch:
# - monorepo
# ---
kind: pipeline kind: pipeline
type: docker type: docker
name: build name: build
@@ -50,7 +77,7 @@ steps:
- echo "$SSH_PRIVATE_KEY" > ~/.ssh/id_rsa - echo "$SSH_PRIVATE_KEY" > ~/.ssh/id_rsa
- chmod 400 ~/.ssh/id_rsa - chmod 400 ~/.ssh/id_rsa
- scp -o StrictHostKeyChecking=no -r ./app/.next webmaster@warframe.center:~/warframe.center - scp -o StrictHostKeyChecking=no -r ./app/.next webmaster@warframe.center:~/warframe.center
- ssh -o StrictHostKeyChecking=no webmaster@warframe.center "pm2 restart warframe-center-app-3000" - ssh -o StrictHostKeyChecking=no webmaster@warframe.center "/home/webmaster/.nvm/versions/node/v16.14.2/bin/pm2 restart warframe-center-app-3000"
depends_on: depends_on:
- install dependencies - install dependencies