summaryrefslogtreecommitdiff
path: root/Deploy.md
diff options
context:
space:
mode:
authoryyamashita <yyamashita@mosquit.one>2026-05-16 12:26:09 +0900
committeryyamashita <yyamashita@mosquit.one>2026-05-16 12:26:09 +0900
commit6dfae0c390ca2a0dc3d6dabc1a52263bfec9b6a7 (patch)
treea8522d46edbac3cd76508f32d8e05c0a18df647b /Deploy.md
parent3a005f23696ad17d02582ec0e2d972620b999ab1 (diff)
Add Claude Code daemon setup for remote sessions per repo
systemd サービス (claude-infra/tokyo/whoisband) を生成・有効化するセットアップスクリプトを追加。 claude remote-control で各リポジトリの常駐セッションを起動し、claude.ai/code から接続できる。 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'Deploy.md')
-rw-r--r--Deploy.md25
1 files changed, 25 insertions, 0 deletions
diff --git a/Deploy.md b/Deploy.md
index 0ba98a2..2a50159 100644
--- a/Deploy.md
+++ b/Deploy.md
@@ -60,6 +60,31 @@ ssh golive 'docker logs whois-app -f'
4. `git remote add hetzner golive:/var/git/<name>.git`
5. `git push hetzner master`
+## Claude Code リモートセッション(デーモン)
+
+各リポジトリに対して Claude Code を常駐プロセスとして起動する。
+
+```bash
+scp scripts/claude-daemon-setup.sh golive:~/
+ssh golive 'bash claude-daemon-setup.sh'
+```
+
+起動後は [https://claude.ai/code](https://claude.ai/code) から各リポジトリのセッションに接続できる。
+
+| サービス名 | 対象ディレクトリ |
+|---|---|
+| `claude-infra` | `/app/infra` |
+| `claude-tokyo` | `/app` |
+| `claude-whoisband` | `/app/whois-band` |
+
+```bash
+# 状態確認
+ssh golive 'systemctl status claude-tokyo'
+
+# ログ確認
+ssh golive 'journalctl -u claude-tokyo -f'
+```
+
## 初回サーバーセットアップ(再構築時)
```bash