aboutsummaryrefslogtreecommitdiff
path: root/refresh.sh
diff options
context:
space:
mode:
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