summaryrefslogtreecommitdiff
path: root/server-hooks
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 /server-hooks
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 'server-hooks')
-rwxr-xr-xserver-hooks/hetzner-infra/post-receive14
-rwxr-xr-xserver-hooks/tokyo-livehouse-events/post-receive8
-rwxr-xr-xserver-hooks/whois-band/post-receive8
3 files changed, 0 insertions, 30 deletions
diff --git a/server-hooks/hetzner-infra/post-receive b/server-hooks/hetzner-infra/post-receive
deleted file mode 100755
index cc3fa8e..0000000
--- a/server-hooks/hetzner-infra/post-receive
+++ /dev/null
@@ -1,14 +0,0 @@
-#!/bin/bash
-set -e
-APP_DIR=/app/infra
-GIT_WORK_TREE=$APP_DIR git checkout -f
-cd $APP_DIR
-docker network create web 2>/dev/null || true
-docker compose up -d
-docker compose exec -T caddy caddy reload --config /etc/caddy/Caddyfile 2>/dev/null || true
-echo "Deploy complete: hetzner-infra"
-
-# Claude Code セッション同期
-if [ -f "$APP_DIR/scripts/sync-claude-services.sh" ]; then
- bash "$APP_DIR/scripts/sync-claude-services.sh"
-fi
diff --git a/server-hooks/tokyo-livehouse-events/post-receive b/server-hooks/tokyo-livehouse-events/post-receive
deleted file mode 100755
index ca64767..0000000
--- a/server-hooks/tokyo-livehouse-events/post-receive
+++ /dev/null
@@ -1,8 +0,0 @@
-#!/bin/bash
-set -e
-APP_DIR=/app/tokyo-livehouse-events
-GIT_WORK_TREE=$APP_DIR git checkout -f
-cd $APP_DIR
-mkdir -p data
-docker compose up -d --build
-echo "Deploy complete: tokyo-livehouse-events"
diff --git a/server-hooks/whois-band/post-receive b/server-hooks/whois-band/post-receive
deleted file mode 100755
index 60b368f..0000000
--- a/server-hooks/whois-band/post-receive
+++ /dev/null
@@ -1,8 +0,0 @@
-#!/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"