diff --git a/.gitea/Prod-deploy.sh b/.gitea/Prod-deploy.sh index 68306fdca..91162e0a4 100755 --- a/.gitea/Prod-deploy.sh +++ b/.gitea/Prod-deploy.sh @@ -1,6 +1,6 @@ #/bin/bash -rsync -av ${{ gitea.workspace }}/csharp/App/Backend/bin/Release/net6.0/linux-x64/publish/ ubuntu@194.182.190.208:~/backend +rsync -av ./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/ +rsync -av ./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' \ No newline at end of file diff --git a/.gitea/Stage-deploy.sh b/.gitea/Stage-deploy.sh index 6809171bb..9d445de3a 100755 --- a/.gitea/Stage-deploy.sh +++ b/.gitea/Stage-deploy.sh @@ -1,6 +1,6 @@ #/bin/bash -rsync -av ${{ gitea.workspace }}/csharp/App/Backend/bin/Release/net6.0/linux-x64/publish/ ubuntu@91.92.154.141:~/backend +rsync -av ./csharp/App/Backend/bin/Release/net6.0/linux-x64/publish/ ubuntu@91.92.154.141:~/backend ssh ubuntu@91.92.154.141 'sudo systemctl restart backend' -rsync -av ${{ gitea.workspace }}/typescript/frontend-marios2/* ubuntu@91.92.154.141:~/frontend/ +rsync -av ./typescript/frontend-marios2/* ubuntu@91.92.154.141:~/frontend/ ssh ubuntu@91.92.154.141 'sudo cp -rf ~/frontend/build/* /var/www/html/monitor.innov.energy/html/' ssh ubuntu@91.92.154.141 'sudo npm install -g serve' \ No newline at end of file diff --git a/.gitea/workflows/prod-deploy.yaml b/.gitea/workflows/prod-deploy.yaml index 32c3adb80..f43551be7 100644 --- a/.gitea/workflows/prod-deploy.yaml +++ b/.gitea/workflows/prod-deploy.yaml @@ -23,5 +23,6 @@ jobs: npm --prefix ${{ gitea.workspace }}/typescript/frontend-marios2 run build - name: copy everything to Prod run: | - ${{ gitea.workspace }}/.gitea/Prod-deploy.sh + cd ${{ gitea.workspace }} + ./.gitea/Prod-deploy.sh - run: echo " This job's status is ${{ job.status }}." \ No newline at end of file diff --git a/.gitea/workflows/stage-deploy.yaml b/.gitea/workflows/stage-deploy.yaml index 159ca3ed9..45d3d9574 100644 --- a/.gitea/workflows/stage-deploy.yaml +++ b/.gitea/workflows/stage-deploy.yaml @@ -23,5 +23,6 @@ jobs: npm --prefix ${{ gitea.workspace }}/typescript/frontend-marios2 run build - name: copy everything to Stage run: | - ${{ gitea.workspace }}/.gitea/Stage-deploy.sh + cd ${{ gitea.workspace }} + ./.gitea/Stage-deploy.sh - run: echo " This job's status is ${{ job.status }}." \ No newline at end of file