blob: 60efc13bbc68f8aa948933a6e76679ce3358a17a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
#!/usr/bin/env bash
set -e
# Build static site
hugo
# Build comments app
pushd comments
if [ $(uname -m) != "aarch64" ]
then
echo "must build on aarch64 for now"
exit
fi
zig build -Doptimize=ReleaseSafe -Dcpu=baseline
popd
# TODO update caddy with offline message while site being updated
# Copy static site
rsync -rz public/* root@rpi3:/var/www/mfashby.net
# Copy comments app
rsync comments/zig-out/bin/comments root@rpi3:/usr/local/bin/comments
# TODO set caddy back to online
|