aboutsummaryrefslogtreecommitdiff
path: root/pub.sh
diff options
context:
space:
mode:
authorhitlerrip <git@hitler.rip>2025-08-05 18:15:12 +0200
committerhitlerrip <git@hitler.rip>2025-08-05 18:15:12 +0200
commitc31e5c9e0e237567095b367e165ef4dcc068da6e (patch)
tree933aa24cf5bf3e7e2be71c84ae5f4c1d56a6960e /pub.sh
parent82beff57670795171ab994c4c63ed861bc1fb3af (diff)
downloadwebsite-c31e5c9e0e237567095b367e165ef4dcc068da6e.tar.gz
website-c31e5c9e0e237567095b367e165ef4dcc068da6e.tar.bz2
website-c31e5c9e0e237567095b367e165ef4dcc068da6e.zip
pub.sh
added an actual wrapper around the build script, which was my intention with `run.sh`
Diffstat (limited to 'pub.sh')
-rwxr-xr-xpub.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/pub.sh b/pub.sh
new file mode 100755
index 0000000..18df7ee
--- /dev/null
+++ b/pub.sh
@@ -0,0 +1,8 @@
+#!/bin/sh
+source ./build.sh
+echo "=== publishing website! ==="
+rm -rf /srv/web/
+sudo mkdir -p /srv/web/
+sudo chown -R $(whoami):$(whoami) /srv/web/
+cp ./web/* /srv/web/
+sudo systemctl restart nginx