aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Ashby <martin@ashbysoft.com>2023-08-14 23:22:01 +0100
committerMartin Ashby <martin@ashbysoft.com>2023-08-22 10:10:02 +0100
commite122e8247a3122c7996de689213066ce66d0e8b9 (patch)
treeda88a977a5f180fefff10db8f49db16ecb3731cf
parent2b66832cae2ec88c730c63e7f3eff84d00c95330 (diff)
downloadmfashby.net-e122e8247a3122c7996de689213066ce66d0e8b9.tar.gz
mfashby.net-e122e8247a3122c7996de689213066ce66d0e8b9.tar.bz2
mfashby.net-e122e8247a3122c7996de689213066ce66d0e8b9.tar.xz
mfashby.net-e122e8247a3122c7996de689213066ce66d0e8b9.zip
Fix template bork
Put rust comments back
-rwxr-xr-xdeploy.sh30
-rw-r--r--zig-comments/src/templates/form.html2
2 files changed, 16 insertions, 16 deletions
diff --git a/deploy.sh b/deploy.sh
index 87fa3ca..ec0a5e8 100755
--- a/deploy.sh
+++ b/deploy.sh
@@ -6,21 +6,21 @@ 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
+pushd comments
if [ $(uname -m) != "aarch64" ]
then
- echo "must build on aarch64 for now"
- exit(1)
+ RUSTFLAGS="-C linker=aarch64-linux-gnu-gcc"
fi
-zig build -Doptimize=ReleaseSafe
+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
+#popd
# TODO update caddy with offline message while site being updated
@@ -29,10 +29,10 @@ 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
+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
diff --git a/zig-comments/src/templates/form.html b/zig-comments/src/templates/form.html
index 3ec8eeb..e7a836f 100644
--- a/zig-comments/src/templates/form.html
+++ b/zig-comments/src/templates/form.html
@@ -1,6 +1,6 @@
<form action="/api/comment" method="post">
<input type="hidden" name="url" value="{{url}}"><br>
- <input type="hidden" name="capcha_id" value="{{capcha_id`}}"><br>
+ <input type="hidden" name="capcha_id" value="{{capcha_id}}"><br>
<label for="author">Name:</label><br>
<input type="text" id="author" name="author"><br>
<label for="comment">Comment:</label><br>