t flag, ls for second command

This commit is contained in:
Firq 2023-03-21 14:24:05 +01:00
parent 2e70c266ae
commit f97af9d4fd
Signed by: Firq
GPG key ID: 4DE1059A4666E89F

View file

@ -61,11 +61,11 @@ deploy-site:
- echo "Getting artifacts"
- ls public
- echo "Stopping screen session, cleaning"
- ssh -T $DEPLOY_USER@$DEPLOY_HOST "screen -X -S website-firq-npx kill; rm -r -f public/*;"
- ssh -t $DEPLOY_USER@$DEPLOY_HOST "screen -X -S website-firq-npx kill; rm -r -f public/*;"
- echo "Copying to proxmox machine"
- rsync -az --stats public $DEPLOY_USER@$DEPLOY_HOST:~/.
- echo "Restarting screen session"
- ssh -T $DEPLOY_USER@$DEPLOY_HOST "screen -S website-firq-npx -dm npx serve public/ -p 9000 -c serve.json"
- ssh -t $DEPLOY_USER@$DEPLOY_HOST "ls public/; screen -S website-firq-npx -dm npx serve public/ -p 9000 -c serve.json"
- echo "Website is up on https://firq.dev/"
success_notification: