diff options
| author | yyamashita <yyamashita@hetzner.yyamashita.com> | 2026-05-17 22:02:49 +0900 |
|---|---|---|
| committer | yyamashita <yyamashita@hetzner.yyamashita.com> | 2026-05-17 22:02:49 +0900 |
| commit | 5bf46bbac5feda06ec10575c6293974d80b2e3df (patch) | |
| tree | b5485bb47f9e9eb9f104913ac6e9e26e886b6902 /CLAUDE.md | |
| parent | edb99c9da2198482345a1c3fc9f24a115d0aa62a (diff) | |
- lighttpd.conf: exempt static files from CGI rewrite
- deploy.sh: add --build to rebuild image on config changes
- CLAUDE.md, Deploy.md: add cgit directory and deploy notes
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'CLAUDE.md')
| -rw-r--r-- | CLAUDE.md | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -6,6 +6,7 @@ Hetzner VPS 上で動くサービス群のインフラ管理リポジトリ。 ``` caddy/ リバースプロキシ(Caddyfile, docker-compose.yml, deploy.sh) +cgit/ cgit Web UI(Dockerfile, lighttpd.conf, cgitrc, deploy.sh) git/ ベアリポジトリ・フック管理(repos.txt, hooks/, install.sh) claude/ Claude Code セッション管理(sessions.txt, systemd unit, sync.sh) server/ サーバー共通設定(authorized_keys, requirements.md) @@ -13,7 +14,9 @@ server/ サーバー共通設定(authorized_keys, requirements.md) ## デプロイの仕組み -- `git push origin master` → post-receive フック → `caddy/deploy.sh` だけ実行 +- `git push origin master` → post-receive フック → `caddy/deploy.sh` と `cgit/deploy.sh` を実行 +- cgit の `lighttpd.conf` / `Dockerfile` 変更はイメージ再ビルドが必要(`deploy.sh` で `--build` するため push だけで反映される) +- cgit の `cgitrc` はボリュームマウントのため push だけで反映される - フック・リポジトリの変更は push 後に `bash /app/infra/git/install.sh` を手動実行 - Claude セッションの変更は push 後に `bash /app/infra/claude/sync.sh` を手動実行 @@ -33,6 +36,10 @@ server/ サーバー共通設定(authorized_keys, requirements.md) # Caddy 設定変更 vi caddy/Caddyfile && git push origin master +# cgit 設定変更(lighttpd.conf / cgitrc) +vi cgit/lighttpd.conf # または cgit/cgitrc +git push origin master # --build 付きで自動再デプロイ + # フック・リポジトリ定義変更 vi git/hooks/.../post-receive # または git/repos.txt git push origin master |
