Trying single ssh command script non-sudo

This commit is contained in:
Kim 2023-11-06 15:25:04 +01:00
parent 6458757222
commit f985105751
1 changed files with 4 additions and 4 deletions

View File

@ -45,10 +45,10 @@ jobs:
host: 91.92.154.141 host: 91.92.154.141
username: ubuntu username: ubuntu
key: ${{ secrets.STAGING_SSH_KEY }} key: ${{ secrets.STAGING_SSH_KEY }}
script: | script: systemctl restart backend
sudo systemctl restart backend # sudo cp -rf ~/frontend/build/*
sudo cp -rf ~/frontend/build/* # sudo npm install -g serve/var/www/html/monitor.innov.energy/html/
sudo npm install -g serve/var/www/html/monitor.innov.energy/html/
- run: echo " This job's status is ${{ job.status }}." - run: echo " This job's status is ${{ job.status }}."