Dough Git

commit

welp, thanks claude for fixing this

commit
db86da87085e4758c707ab13716f71c67f271726
author
Clove Twilight <[email protected]>
date
2026-11-05 13:47

diff --git a/deploy/log/run b/deploy/log/run
new file mode 100755
index 0000000..f70bce8
--- /dev/null
+++ b/deploy/log/run
@@ -0,0 +1,7 @@
+#!/bin/sh
+# runit log service for clove-web: everything the site prints ends up here,
+# timestamped and rotated by svlogd
+LOG_DIR=/var/log/clove-web
+
+mkdir -p "$LOG_DIR"
+exec svlogd -tt "$LOG_DIR"
diff --git a/deploy/run b/deploy/run
index 9eeb03f..43c6c62 100755
--- a/deploy/run
+++ b/deploy/run
@@ -11,5 +11,14 @@ export NODE_ENV=production
 # and to build the SSO redirect URI
 export ORIGIN=https://doughmination.gay
 
-# Secrets (SSO client, session secret, guestbook key) live in /srv/clove/web/.env
-exec /home/clove/.nvm/versions/node/v26.11.1/bin/node --env-file-if-exists=.env build/index.js
+# Run as clove rather than root. chpst doesn't change HOME, so set it for Deno's cache
+export HOME=/home/clove
+
+# Secrets (SSO client, session secret, guestbook key) live in /srv/clove/web/.env,
+# which Deno skips if it's missing. Reads are limited to this folder
+exec chpst -u clove /usr/bin/deno run \
+	--allow-net \
+	--allow-env \
+	--allow-read=. \
+	--env-file=.env \
+	build/index.js