aboutsummaryrefslogtreecommitdiff
path: root/refresh.sh
diff options
context:
space:
mode:
authorMartin Ashby <martin@ashbysoft.com>2022-12-30 01:07:37 +0000
committerMartin Ashby <martin@ashbysoft.com>2022-12-30 01:07:37 +0000
commit03d6d8f15825811bddf368732c22fc6a705a9d32 (patch)
treeef202fc4bde7b5750d7f4018a6b08ac4f46c5908 /refresh.sh
parent671f850c4fb72941c111edb6dff1030839b0dd55 (diff)
downloadmfashby.net-03d6d8f15825811bddf368732c22fc6a705a9d32.tar.gz
mfashby.net-03d6d8f15825811bddf368732c22fc6a705a9d32.tar.bz2
mfashby.net-03d6d8f15825811bddf368732c22fc6a705a9d32.tar.xz
mfashby.net-03d6d8f15825811bddf368732c22fc6a705a9d32.zip
update refresh script and add systemd file for comments service
Diffstat (limited to 'refresh.sh')
-rwxr-xr-xrefresh.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/refresh.sh b/refresh.sh
index 60eeac8..9c753a0 100755
--- a/refresh.sh
+++ b/refresh.sh
@@ -3,5 +3,15 @@
set -e
git pull
+
+# Copy static site
hugo
cp -r public/* /var/www/mfashby.net/
+
+# build & install comments app
+pushd comments
+cargo build --release
+install -m755 target/release/comments /usr/local/bin/comments
+install -m755 comments.service /etc/systemd/system/comments.service
+popd
+systemctl restart comments