From 745b8648f8f650a0e189554fc4c63e7259656187 Mon Sep 17 00:00:00 2001 From: David Luevano Alvarado Date: Wed, 27 Apr 2022 00:12:15 -0600 Subject: add new scripts and configs for updated pyssg --- .gitignore | 2 ++ art/config.ini | 17 +++++++++++++++++ blog/config.ini | 17 +++++++++++++++++ lbuild | 3 +++ lsync | 14 ++++++++++++++ 5 files changed, 53 insertions(+) create mode 100644 .gitignore create mode 100644 art/config.ini create mode 100644 blog/config.ini create mode 100755 lbuild create mode 100755 lsync diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b73bea2 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +# python venv +.venv/ diff --git a/art/config.ini b/art/config.ini new file mode 100644 index 0000000..bfb223d --- /dev/null +++ b/art/config.ini @@ -0,0 +1,17 @@ +[path] +site=$HOME/luevano.xyz/art +src=%(site)s/src +dst=%(site)s/dst +plt=%(site)s/plt +[url] +main=https://art.luevano.xyz +static=https://static.luevano.xyz +default_image=/images/a/default.png +[fmt] +date=%%a, %%b %%d, %%Y @ %%H:%%M %%Z +list_date=%%b %%d +list_sep_date=%%B %%Y +[info] +title=Luevano's Art +[other] +force=False diff --git a/blog/config.ini b/blog/config.ini new file mode 100644 index 0000000..6057e85 --- /dev/null +++ b/blog/config.ini @@ -0,0 +1,17 @@ +[path] +site=$HOME/luevano.xyz/blog +src=%(site)s/src +dst=%(site)s/dst +plt=%(site)s/plt +[url] +main=https://blog.luevano.xyz +static=https://static.luevano.xyz +default_image=/images/b/default.png +[fmt] +date=%%a, %%b %%d, %%Y @ %%H:%%M %%Z +list_date=%%b %%d +list_sep_date=%%B %%Y +[info] +title=Luevano's Blog +[other] +force=False diff --git a/lbuild b/lbuild new file mode 100755 index 0000000..b8a1c30 --- /dev/null +++ b/lbuild @@ -0,0 +1,3 @@ +# temp build script for art and blog +pyssg --config $HOME/luevano.xyz/blog/config.ini -b +pyssg --config $HOME/luevano.xyz/art/config.ini -b diff --git a/lsync b/lsync new file mode 100755 index 0000000..7faf048 --- /dev/null +++ b/lsync @@ -0,0 +1,14 @@ +#!/bin/sh +# Push to luevano.xyz + +# This pushes everything! (except for blog and art, since it needs a bit more management) +echo "rsync: pushing (U) local (lz) to webserver (lzserver). (luevano.xyz)" +rsync -rtuvPL --delete-after --exclude-from=$HOME/luevano.xyz/.rsyncignore $HOME/luevano.xyz/ luevanor:/var/www/ + +# This pushes the blog. +echo "rsync: pushing (U) local (lz) to webserver (lzserver). (blog.luevano.xyz)" +rsync -rtuvPL --delete-after $HOME/luevano.xyz/blog/dst/ luevanor:/var/www/blog/ + +# This pushes the art. +echo "rsync: pushing (U) local (lz) to webserver (lzserver). (art.luevano.xyz)" +rsync -rtuvPL --delete-after $HOME/luevano.xyz/art/dst/ luevanor:/var/www/art/ -- cgit v1.2.3-70-g09d2