aboutsummaryrefslogtreecommitdiff
path: root/deploy.sh
diff options
context:
space:
mode:
authorMartin Ashby <martin@ashbysoft.com>2023-08-22 10:09:50 +0100
committerMartin Ashby <martin@ashbysoft.com>2023-08-22 10:10:02 +0100
commit8f7f272d68b4197f17d1e76c97546017b8ebea90 (patch)
tree2554b41d34faa0d9ff32eefb9cdb4b9b8c08770a /deploy.sh
parente122e8247a3122c7996de689213066ce66d0e8b9 (diff)
downloadmfashby.net-8f7f272d68b4197f17d1e76c97546017b8ebea90.tar.gz
mfashby.net-8f7f272d68b4197f17d1e76c97546017b8ebea90.tar.bz2
mfashby.net-8f7f272d68b4197f17d1e76c97546017b8ebea90.tar.xz
mfashby.net-8f7f272d68b4197f17d1e76c97546017b8ebea90.zip
Switch to CGI comments
Diffstat (limited to 'deploy.sh')
-rwxr-xr-xdeploy.sh36
1 files changed, 18 insertions, 18 deletions
diff --git a/deploy.sh b/deploy.sh
index ec0a5e8..4b6511d 100755
--- a/deploy.sh
+++ b/deploy.sh
@@ -6,21 +6,21 @@ set -e
hugo
# Build comments app
-pushd comments
+# 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
- RUSTFLAGS="-C linker=aarch64-linux-gnu-gcc"
+ echo "must build on aarch64 for now"
+ exit
fi
-cargo build --target=aarch64-unknown-linux-gnu --release
+zig build # -Doptimize=ReleaseSafe
popd
-#pushd zig-comments
-#if [ $(uname -m) != "aarch64" ]
-#then
-# echo "must build on aarch64 for now"
-# exit
-#fi
-#zig build # -Doptimize=ReleaseSafe
-#popd
# TODO update caddy with offline message while site being updated
@@ -28,12 +28,12 @@ popd
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
-#rsync zig-comments/zig-out/bin/comments root@rpi3:/usr/local/bin/comments
-#rsync zig-comments/comments.service root@rpi3:/etc/systemd/system/comments.service
-ssh root@rpi3 -C systemctl daemon-reload
-ssh root@rpi3 -C systemctl restart comments
+#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
+
+rsync zig-comments/zig-out/bin/comments root@rpi3:/usr/local/bin/comments
# TODO set caddy back to online