From bab73ae341a8c5c9cac4d7f825e0c70cfc982133 Mon Sep 17 00:00:00 2001 From: Tetardtek Date: Tue, 28 Apr 2026 18:41:27 +0200 Subject: [PATCH] =?UTF-8?q?fix:=20CI=20pm2=20start-or-reload=20=E2=80=94?= =?UTF-8?q?=20cr=C3=A9e=20le=20process=20s'il=20n'existe=20pas?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/deploy.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 42c2c16..1c3e8f4 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -31,7 +31,9 @@ jobs: - name: Restart pm2 if: github.event_name == 'push' && github.ref == 'refs/heads/main' run: | - pm2 reload tetardpg-backend --update-env + pm2 describe tetardpg-backend >/dev/null 2>&1 \ + && pm2 reload tetardpg-backend --update-env \ + || (cd /var/www/tetardpg/backend && pm2 start dist/main.js --name tetardpg-backend && pm2 save) # ── Frontend ───────────────────────────────────────────────────────────── - name: Install & build frontend