From 03d6d8f15825811bddf368732c22fc6a705a9d32 Mon Sep 17 00:00:00 2001 From: Martin Ashby Date: Fri, 30 Dec 2022 01:07:37 +0000 Subject: update refresh script and add systemd file for comments service --- refresh.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'refresh.sh') 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 -- cgit v1.2.3-ZIG