aboutsummaryrefslogtreecommitdiff
path: root/deploy.sh
diff options
context:
space:
mode:
authorMartin Ashby <martin@ashbysoft.com>2023-08-22 10:49:17 +0100
committerMartin Ashby <martin@ashbysoft.com>2023-08-22 10:49:17 +0100
commit7ed589a06539fcc91ab779a1e6de0a995f8238b5 (patch)
treef23bd017d43af4714280aea2d152379370393214 /deploy.sh
parent8f7f272d68b4197f17d1e76c97546017b8ebea90 (diff)
downloadmfashby.net-7ed589a06539fcc91ab779a1e6de0a995f8238b5.tar.gz
mfashby.net-7ed589a06539fcc91ab779a1e6de0a995f8238b5.tar.bz2
mfashby.net-7ed589a06539fcc91ab779a1e6de0a995f8238b5.tar.xz
mfashby.net-7ed589a06539fcc91ab779a1e6de0a995f8238b5.zip
Replace comments with zig version
Diffstat (limited to 'deploy.sh')
-rwxr-xr-xdeploy.sh17
1 files changed, 2 insertions, 15 deletions
diff --git a/deploy.sh b/deploy.sh
index 4b6511d..2682564 100755
--- a/deploy.sh
+++ b/deploy.sh
@@ -6,20 +6,13 @@ set -e
hugo
# Build comments app
-# pushd comments
-# if [ $(uname -m) != "aarch64" ]
-# then
-# RUSTFLAGS="-C linker=aarch64-linux-gnu-gcc"
-# fi
-# cargo build --target=aarch64-unknown-linux-gnu --release
-# popd
pushd zig-comments
if [ $(uname -m) != "aarch64" ]
then
echo "must build on aarch64 for now"
exit
fi
-zig build # -Doptimize=ReleaseSafe
+zig build -Doptimize=ReleaseSafe
popd
# TODO update caddy with offline message while site being updated
@@ -27,13 +20,7 @@ popd
# Copy static site
rsync -rz public/* root@rpi3:/var/www/mfashby.net
-# Copy comments app and reboot
-#ssh root@rpi3 -C systemctl stop comments
-#rsync comments/target/aarch64-unknown-linux-gnu/release/comments root@rpi3:/usr/local/bin/comments
-#rsync comments/comments.service root@rpi3:/etc/systemd/system/comments.service
-#ssh root@rpi3 -C systemctl daemon-reload
-#ssh root@rpi3 -C systemctl restart comments
-
+# Copy comments app
rsync zig-comments/zig-out/bin/comments root@rpi3:/usr/local/bin/comments
# TODO set caddy back to online