From afad1355d308382a5ad42f72811739840282c38f Mon Sep 17 00:00:00 2001 From: Kim Date: Mon, 13 Nov 2023 10:34:17 +0100 Subject: [PATCH] need to stop backend before overwriting --- .gitea/workflows/stage-deploy.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.gitea/workflows/stage-deploy.yaml b/.gitea/workflows/stage-deploy.yaml index c179d431b..5b7e7c349 100644 --- a/.gitea/workflows/stage-deploy.yaml +++ b/.gitea/workflows/stage-deploy.yaml @@ -19,6 +19,16 @@ jobs: - run: | npm --prefix ${{ gitea.workspace }}/typescript/frontend-marios2 install npm --prefix ${{ gitea.workspace }}/typescript/frontend-marios2 run build + + - name: stop services + uses: appleboy/ssh-action@v0.1.4 + with: + host: 91.92.154.141 + username: ubuntu + password: ${{ secrets.STAGE_SSH_PASSPHRASE }} + script: | + sudo systemctl stop backend + - name: Copy Backend uses: appleboy/scp-action@v0.1.4 with: