From 9be0f1910ec39b8918da11c41e230b760b9c1a9a Mon Sep 17 00:00:00 2001 From: Jesus Fajardo Date: Tue, 15 Oct 2024 00:07:51 +0200 Subject: [PATCH] Testing SSH conection from Github Action (7) --- .github/workflows/deploy.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 572efa9..5d5f2b2 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -78,6 +78,7 @@ jobs: cd /var/www/html/virtual-dojo/backend npm install pm2 -g npm install --only=prod - pm2 restart all || pm2 start server.js --name virtual-dojo + set -x # Habilita el modo de depuraciĆ³n + pm2 restart all || nohup pm2 start server.js --name virtual-dojo > /dev/null 2>&1 & exit 0 EOF \ No newline at end of file