Trying single ssh command script non-sudo
This commit is contained in:
parent
6458757222
commit
f985105751
|
@ -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 }}."
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue