summaryrefslogtreecommitdiff
path: root/deployment/post-receive
diff options
context:
space:
mode:
authorPeter Stone <thepeterstone@gmail.com>2026-07-17 20:40:08 +0000
committerPeter Stone <thepeterstone@gmail.com>2026-07-17 20:40:08 +0000
commit70e6dd75130e70f2db83096c23eaa75326b183a2 (patch)
tree601f6a1f7d0f0fa496f05be860269753306b220f /deployment/post-receive
parent244d751412a0a1e3ede8bd91e114a4ef4e1a7eaa (diff)
chore(deploy): remove abandoned push-to-deploy scaffolding
deployment/deploy duplicated scripts/deploy (the one actually in use). deployment/post-receive documented installing a git hook at /site/doot.terst.org/app-code/hooks/post-receive, but that hook was never actually installed and the app-code checkout it depended on has been removed -- this path was never wired up.
Diffstat (limited to 'deployment/post-receive')
-rw-r--r--deployment/post-receive48
1 files changed, 0 insertions, 48 deletions
diff --git a/deployment/post-receive b/deployment/post-receive
deleted file mode 100644
index 76581dd..0000000
--- a/deployment/post-receive
+++ /dev/null
@@ -1,48 +0,0 @@
-#!/bin/bash
-set -e
-
-# Server-side deploy hook for /site/doot.terst.org
-# Install: cp deployment/post-receive /site/doot.terst.org/app-code/hooks/post-receive && chmod +x /site/doot.terst.org/app-code/hooks/post-receive
-
-FQDN="doot.terst.org"
-SITE_DIR="/site/${FQDN}"
-REPO_DIR="${SITE_DIR}/app-code"
-CHECKOUT_DIR="${SITE_DIR}/checkout"
-SERVICE="task-dashboard@${FQDN}"
-
-echo "==> Deploying ${FQDN}..."
-
-echo "Stopping service..."
-systemctl stop ${SERVICE} || true
-
-echo "Checking out code..."
-mkdir -p ${CHECKOUT_DIR}
-GIT_WORK_TREE=${CHECKOUT_DIR} git --git-dir=${REPO_DIR} checkout -f master
-
-echo "Building CSS..."
-cd ${CHECKOUT_DIR}
-npm ci || npm install
-npm run build
-
-echo "Building binary..."
-GOOS=linux GOARCH=amd64 go build -o ${SITE_DIR}/app cmd/dashboard/main.go
-
-echo "Syncing static files..."
-rsync -a --delete ${CHECKOUT_DIR}/web/static/ ${SITE_DIR}/public/
-
-echo "Syncing templates..."
-rsync -a --delete ${CHECKOUT_DIR}/web/templates/ ${SITE_DIR}/templates/
-
-echo "Setting permissions..."
-chown -R www-data:www-data ${SITE_DIR}
-find ${SITE_DIR} -type d -exec chmod 755 {} \;
-find ${SITE_DIR} -type f -exec chmod 644 {} \;
-chmod +x ${SITE_DIR}/app
-chmod 600 ${SITE_DIR}/.env 2>/dev/null || true
-
-echo "Starting service..."
-systemctl start ${SERVICE}
-sleep 1
-systemctl status ${SERVICE} --no-pager -l
-
-echo "==> Deploy complete!"