summaryrefslogtreecommitdiff
path: root/git/hooks/whois-band/post-receive
diff options
context:
space:
mode:
authoryyamashita <yyamashita@hetzner.yyamashita.com>2026-05-17 11:29:27 +0900
committeryyamashita <yyamashita@hetzner.yyamashita.com>2026-05-17 11:29:27 +0900
commitef6dbdd2ac273dc4a01c70437ee7984cea9f2a3c (patch)
tree4db9e4917a3a2ffb4d96d02fd7927dd7dcaabf39 /git/hooks/whois-band/post-receive
parentfa8880f38783bebbce805f8595c949b9c7f326a0 (diff)
Reorganize repo into caddy/, git/, claude/ directories
- caddy/: Caddyfile, docker-compose.yml, deploy.sh (hook runs this only) - git/: repos.txt, hooks/*/post-receive, install.sh, server-setup.sh - claude/: sessions.txt, systemd/claude-code@.service, sync.sh Post-receive hook is now: checkout + bash caddy/deploy.sh Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'git/hooks/whois-band/post-receive')
-rwxr-xr-xgit/hooks/whois-band/post-receive8
1 files changed, 8 insertions, 0 deletions
diff --git a/git/hooks/whois-band/post-receive b/git/hooks/whois-band/post-receive
new file mode 100755
index 0000000..60b368f
--- /dev/null
+++ b/git/hooks/whois-band/post-receive
@@ -0,0 +1,8 @@
+#!/bin/bash
+set -e
+APP_DIR=/app/whois-band
+GIT_WORK_TREE=$APP_DIR git checkout -f
+cd $APP_DIR
+mkdir -p data
+docker compose up -d --build
+echo "Deploy complete: whois-band"