aboutsummaryrefslogtreecommitdiff
path: root/deploy.sh
blob: 48f8c799d4b016855c45163400d2b5fdaedb08f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/env bash

set -e

# 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@rpi3:/var/www/mfashby.net

# Copy comments app
rsync comments/zig-out/bin/comments root@rpi3:/usr/local/bin/comments