summaryrefslogtreecommitdiff
path: root/tools/publish-ec2
diff options
context:
space:
mode:
authorOwen Jacobson <owen@grimoire.ca>2023-11-01 01:02:06 -0400
committerOwen Jacobson <owen@grimoire.ca>2023-11-01 01:02:06 -0400
commit88db0ee0b88a9066edb9d5a4333cfad098419fd2 (patch)
tree6727aaa0cd49ad6f1a11c2eb51478ee4eda17d2d /tools/publish-ec2
parent842bb149398c7e76ee586937abc1e60853cc7958 (diff)
Split publication into cloudfront and ec2 publish targets
Diffstat (limited to 'tools/publish-ec2')
-rwxr-xr-xtools/publish-ec211
1 files changed, 11 insertions, 0 deletions
diff --git a/tools/publish-ec2 b/tools/publish-ec2
new file mode 100755
index 0000000..9ee5d71
--- /dev/null
+++ b/tools/publish-ec2
@@ -0,0 +1,11 @@
+#!/bin/bash -e
+
+cd "$(dirname "$0")/.."
+
+## tools/publish
+##
+## Publishes site/ to the S3 bucket hosting grimoire.ca
+
+exec rsync -zav --delete --progress \
+ site/ \
+ admin@grimoire.ca:/srv/grimoire.ca/webroot/