Allow deploying to linode
authorAlex Chan <alex@alexwlchan.net>
Sun, 2 Feb 2020 21:28:15 +0000 (21:28 +0000)
committerAlex Chan <alex@alexwlchan.net>
Sun, 2 Feb 2020 21:28:15 +0000 (21:28 +0000)
scripts/deploy.sh [new file with mode: 0755]
scripts/render_html.py

diff --git a/scripts/deploy.sh b/scripts/deploy.sh
new file mode 100755 (executable)
index 0000000..dcd58fd
--- /dev/null
@@ -0,0 +1,10 @@
+#!/usr/bin/env bash
+
+set -o errexit
+set -o nounset
+set -o verbose
+
+python3 scripts/render_html.py
+
+rsync --archive --verbose --compress --delete \
+  _html/ alexwlchan@helene.linode:sites/books.alexwlchan.net
index fc198d8..87e3421 100755 (executable)
@@ -218,3 +218,5 @@ if __name__ == "__main__":
 
     index_path = pathlib.Path("_html") / "index.html"
     index_path.write_text(html)
+
+    print("✨ Rendered HTML files to _html ✨")