diff options
| author | yyamashita <yyamashita@hetzner.yyamashita.com> | 2026-05-17 11:22:18 +0900 |
|---|---|---|
| committer | yyamashita <yyamashita@hetzner.yyamashita.com> | 2026-05-17 11:22:18 +0900 |
| commit | fa8880f38783bebbce805f8595c949b9c7f326a0 (patch) | |
| tree | 09e3a1dbaddbedbfc6de370b38bfb7b70ffca809 | |
| parent | b6efad84b51c6df5f595683d66b855c75bddabc4 (diff) | |
Move tokyo-livehouse-events work tree from /app to /app/tokyo-livehouse-events
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
| -rw-r--r-- | Deploy.md | 2 | ||||
| -rw-r--r-- | repos.txt | 2 | ||||
| -rwxr-xr-x | server-hooks/tokyo-livehouse-events/post-receive | 6 |
3 files changed, 4 insertions, 6 deletions
@@ -25,7 +25,7 @@ Docker network: web (external, 全アプリ共有) | リポジトリ | bare repo | work tree | |---|---|---| | hetzner-infra | /var/git/hetzner-infra.git | /app/infra | -| tokyo-livehouse-events | /var/git/tokyo-livehouse-events.git | /app | +| tokyo-livehouse-events | /var/git/tokyo-livehouse-events.git | /app/tokyo-livehouse-events | | whois-band | /var/git/whois-band.git | /app/whois-band | ## デプロイ @@ -2,5 +2,5 @@ # 形式: <repo-name>:<work-tree-path> # /var/git/<repo-name>.git が bare repo、<work-tree-path> が checkout 先 hetzner-infra:/app/infra -tokyo-livehouse-events:/app +tokyo-livehouse-events:/app/tokyo-livehouse-events whois-band:/app/whois-band diff --git a/server-hooks/tokyo-livehouse-events/post-receive b/server-hooks/tokyo-livehouse-events/post-receive index 8d5ef84..ca64767 100755 --- a/server-hooks/tokyo-livehouse-events/post-receive +++ b/server-hooks/tokyo-livehouse-events/post-receive @@ -1,9 +1,7 @@ #!/bin/bash set -e -APP_DIR=/app -GIT_DIR=/var/git/tokyo-livehouse-events.git - -git --work-tree=$APP_DIR --git-dir=$GIT_DIR checkout -f +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 |
