summaryrefslogtreecommitdiff
path: root/pyssg.xyz/bs
blob: 940f8df19e51c55ccdd8f8d4fd33c1ae289068fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh
# bs = build and sync, to pyssg.xyz

PYSSG_XYZ_DIR=$HOME/pyssg/pyssg.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/pyssg.xyz/