summaryrefslogtreecommitdiff
path: root/caddy/deploy.sh
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 /caddy/deploy.sh
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 'caddy/deploy.sh')
-rwxr-xr-xcaddy/deploy.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/caddy/deploy.sh b/caddy/deploy.sh
new file mode 100755
index 0000000..698cd68
--- /dev/null
+++ b/caddy/deploy.sh
@@ -0,0 +1,6 @@
+#!/usr/bin/env bash
+set -euo pipefail
+cd "$(dirname "$0")"
+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