From 6e0a0f9a741b828bfe92865051d60dccbb560bf3 Mon Sep 17 00:00:00 2001 From: Firq Date: Mon, 1 May 2023 18:08:58 +0200 Subject: [PATCH] Fix for cases where screen is not running --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 3a1b101..fff4b11 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -115,7 +115,7 @@ redeploy-site: - *ssh_default script: - echo "Stopping screen session" - - ssh $DEPLOY_USER@$DEPLOY_HOST "screen -X -S website-firq-npx kill;" + - ssh $DEPLOY_USER@$DEPLOY_HOST "screen -X -S website-firq-npx kill" || true - echo "Restarting screen session" - ssh $DEPLOY_USER@$DEPLOY_HOST "screen -S website-firq-npx -dm npx serve public/ -p 9000 -c serve.json" - echo "Website is up on https://firq.dev/"