mistymountains/deploy.sh
2024-04-29 21:01:09 -07:00

11 lines
271 B
Bash
Executable File

#!/bin/bash
set -e
echo $SSH_KEY | base64 -d >> /tmp/key
chmod -R 0600 /tmp/key
ssh -i /tmp/key -o StrictHostKeyChecking=no $HOST "cd /home/lizzy/mistymountains && git pull && git reset --hard origin/master && npm run build && sudo systemctl restart mmt"
rm /tmp/key