Innovenergy_trunk/.gitea/Prod-deploy.sh

7 lines
451 B
Bash

#/bin/bash
rsync -av ${{ gitea.workspace }}/csharp/App/Backend/bin/Release/net6.0/linux-x64/publish/ ubuntu@194.182.190.208:~/backend
ssh ubuntu@194.182.190.208 'sudo systemctl restart backend'
rsync -av ${{ gitea.workspace }}/typescript/frontend-marios2/* ubuntu@194.182.190.208:~/frontend/
ssh ubuntu@194.182.190.208 'sudo cp -rf ~/frontend/build/* /var/www/html/monitor.innov.energy/html/'
ssh ubuntu@194.182.190.208 'sudo npm install -g serve'