summaryrefslogtreecommitdiff
path: root/deploy.sh
diff options
context:
space:
mode:
authorElizabeth Hunt <elizabeth.hunt@simponic.xyz>2024-04-29 21:01:09 -0700
committerElizabeth Hunt <elizabeth.hunt@simponic.xyz>2024-04-29 21:01:09 -0700
commitc255fefb2240e0e2605a42f3f8f8a3944f9ed2c2 (patch)
tree4c30be1e074761e044dd4ef68658657d052f0a31 /deploy.sh
parentc10f93f556363a7f543065e3b8537511c34e0b22 (diff)
downloadmistymountainstherapy-c255fefb2240e0e2605a42f3f8f8a3944f9ed2c2.tar.gz
mistymountainstherapy-c255fefb2240e0e2605a42f3f8f8a3944f9ed2c2.zip
cd
Diffstat (limited to 'deploy.sh')
-rwxr-xr-xdeploy.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/deploy.sh b/deploy.sh
new file mode 100755
index 0000000..bb2e026
--- /dev/null
+++ b/deploy.sh
@@ -0,0 +1,10 @@
+#!/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