Fix for cases where screen is not running

This commit is contained in:
Firq 2023-05-01 18:08:58 +02:00
parent 3dd26e1a88
commit 6e0a0f9a74
Signed by: Firq
GPG key ID: 4DE1059A4666E89F

View file

@ -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/"