fix: CI pm2 start-or-reload — crée le process s'il n'existe pas
All checks were successful
CI/CD — Build & Deploy / Build & Deploy (push) Successful in 39s
All checks were successful
CI/CD — Build & Deploy / Build & Deploy (push) Successful in 39s
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user