blob: fb3d868a8301a13c53db8c7039759b8e706deca8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#!/usr/bin/env bash
set -e
HOST=${HOST:-rpi3}
# Build static site
zig build
# Build comments app
pushd comments
zig build \
-Doptimize=ReleaseSafe \
-Dtarget=aarch64-linux-gnu \
-Dcpu=baseline
popd
# Copy static site
rsync -rz zig-out/* root@$HOST:/var/www/mfashby.net
# Copy comments app
rsync comments/zig-out/bin/comments root@$HOST:/usr/local/bin/comments
|