From 7e49db5ddefe8c515b5f3931a5c701efaac33d91 Mon Sep 17 00:00:00 2001
From: David Luevano Alvarado <david@luevano.xyz>
Date: Fri, 16 Dec 2022 17:45:03 -0600
Subject: change structure for new pyssg version

---
 bs | 13 +++++++++++++
 1 file changed, 13 insertions(+)
 create mode 100755 bs

(limited to 'bs')

diff --git a/bs b/bs
new file mode 100755
index 0000000..1e3da74
--- /dev/null
+++ b/bs
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+PYSSG_XYZ_DIR=$HOME/luevano.xyz
+
+pyssg --config $PYSSG_XYZ_DIR/config.yaml -b --debug
+
+if [ $? -ne 0 ]; then
+echo "Failed to build the site."
+exit 1
+fi
+
+echo "rsync: pushing (U) local (pyssg.xyz) to webserver (luevano.xyz). (pyssg.xyz)"
+rsync -rtuvPL --delete-after --exclude-from=$PYSSG_XYZ_DIR/.rsyncignore $PYSSG_XYZ_DIR/live/ luevanor:/var/www/luevano.xyz/
\ No newline at end of file
-- 
cgit v1.2.3-70-g09d2