diff options
| author | Peter Stone <thepeterstone@gmail.com> | 2026-07-17 20:40:08 +0000 |
|---|---|---|
| committer | Peter Stone <thepeterstone@gmail.com> | 2026-07-17 20:40:08 +0000 |
| commit | 70e6dd75130e70f2db83096c23eaa75326b183a2 (patch) | |
| tree | 601f6a1f7d0f0fa496f05be860269753306b220f /deployment/deploy | |
| parent | 244d751412a0a1e3ede8bd91e114a4ef4e1a7eaa (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/deploy')
| -rw-r--r-- | deployment/deploy | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/deployment/deploy b/deployment/deploy deleted file mode 100644 index 5bc4888..0000000 --- a/deployment/deploy +++ /dev/null @@ -1,37 +0,0 @@ -#!/bin/bash -set -e - -FQDN="doot.terst.org" -SITE_DIR="/site/${FQDN}" -CODE_DIR="${SITE_DIR}/app-code" -SERVICE="task-dashboard@${FQDN}" - -cd ${CODE_DIR} - -echo "==> Pulling latest..." -git pull - -echo "==> Stopping service..." -systemctl stop ${SERVICE} || true - -echo "==> Building CSS..." -npm ci || npm install -npm run build - -echo "==> Building..." -go build -o ${SITE_DIR}/app cmd/dashboard/main.go - -echo "==> Syncing files..." -rsync -a --delete web/static/ ${SITE_DIR}/public/ -rsync -a --delete web/templates/ ${SITE_DIR}/templates/ - -echo "==> Fixing permissions..." -chown -R www-data:www-data ${SITE_DIR} -chmod +x ${SITE_DIR}/app -chmod 600 ${SITE_DIR}/.env 2>/dev/null || true - -echo "==> Starting service..." -systemctl start ${SERVICE} -systemctl status ${SERVICE} --no-pager -l - -echo "==> Done!" |
