summaryrefslogtreecommitdiff
path: root/git/hooks/microblog/post-receive
diff options
context:
space:
mode:
authoryyamashita <yyamashita@hetzner.yyamashita.com>2026-06-19 15:19:00 +0900
committeryyamashita <yyamashita@hetzner.yyamashita.com>2026-06-19 15:19:00 +0900
commit6e41cc1b7a6769608cacb456bae21aa0d7704f59 (patch)
treeb42d5b549493155790fefd88cce2ec07b0be3a60 /git/hooks/microblog/post-receive
parent93bd9a1d92e62c453230f0c1cc1058e745b30f40 (diff)
Add microblog service
- Caddy: route blog.yyamashita.com → microblog-app:3000 - git: add microblog post-receive hook and update work tree path to /app/microblog - DNS: add blog subdomain to Route 53 WEB_SUBDOMAINS Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'git/hooks/microblog/post-receive')
-rwxr-xr-xgit/hooks/microblog/post-receive8
1 files changed, 8 insertions, 0 deletions
diff --git a/git/hooks/microblog/post-receive b/git/hooks/microblog/post-receive
new file mode 100755
index 0000000..2627861
--- /dev/null
+++ b/git/hooks/microblog/post-receive
@@ -0,0 +1,8 @@
+#!/bin/bash
+set -e
+APP_DIR=/app/microblog
+GIT_WORK_TREE=$APP_DIR git checkout -f
+cd $APP_DIR
+mkdir -p data
+docker compose up -d --build
+echo "Deploy complete: microblog"