diff options
| author | Owen Jacobson <owen@grimoire.ca> | 2023-11-01 01:02:06 -0400 |
|---|---|---|
| committer | Owen Jacobson <owen@grimoire.ca> | 2023-11-01 01:02:06 -0400 |
| commit | 88db0ee0b88a9066edb9d5a4333cfad098419fd2 (patch) | |
| tree | 6727aaa0cd49ad6f1a11c2eb51478ee4eda17d2d | |
| parent | 842bb149398c7e76ee586937abc1e60853cc7958 (diff) | |
Split publication into cloudfront and ec2 publish targets
| -rwxr-xr-x | tools/publish-cloudfront (renamed from tools/publish) | 0 | ||||
| -rwxr-xr-x | tools/publish-ec2 | 11 |
2 files changed, 11 insertions, 0 deletions
diff --git a/tools/publish b/tools/publish-cloudfront index ee8aa63..ee8aa63 100755 --- a/tools/publish +++ b/tools/publish-cloudfront 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/ |
