docs: restore disaster recovery guide, add to CLAUDE.md and AGENTS.md
This commit is contained in:
parent
b945508314
commit
c677924972
|
|
@ -49,6 +49,7 @@ npm run deploy # = git push gitea main && git push github main
|
||||||
| `docs/master-architecture.md` | インフラ構成図、VPS/DB 定義、全アプリ一覧と URL |
|
| `docs/master-architecture.md` | インフラ構成図、VPS/DB 定義、全アプリ一覧と URL |
|
||||||
| `docs/design-system.md` | デザインシステム(posimai-ui)、カラートークン、特例色 |
|
| `docs/design-system.md` | デザインシステム(posimai-ui)、カラートークン、特例色 |
|
||||||
| `docs/new-app-guide.md` | 新規アプリ作成の手順と各種ダッシュボード更新のチェックリスト |
|
| `docs/new-app-guide.md` | 新規アプリ作成の手順と各種ダッシュボード更新のチェックリスト |
|
||||||
|
| `docs/disaster-recovery.md` | PC 完全消失時の復元手順(posimai-root / claude-memory の clone 手順)|
|
||||||
| `posimai-dashboard/src/data/projects.json` | 全アプリのステータス・技術スタック |
|
| `posimai-dashboard/src/data/projects.json` | 全アプリのステータス・技術スタック |
|
||||||
| `memory/MEMORY.md` | AI 固有の記憶(`claude-memory` リポジトリへも push して同期すること) |
|
| `memory/MEMORY.md` | AI 固有の記憶(`claude-memory` リポジトリへも push して同期すること) |
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -49,6 +49,7 @@ npm run deploy # = git push gitea main && git push github main
|
||||||
| `docs/master-architecture.md` | インフラ構成図、VPS/DB 定義、全アプリ一覧と URL |
|
| `docs/master-architecture.md` | インフラ構成図、VPS/DB 定義、全アプリ一覧と URL |
|
||||||
| `docs/design-system.md` | デザインシステム(posimai-ui)、カラートークン、特例色 |
|
| `docs/design-system.md` | デザインシステム(posimai-ui)、カラートークン、特例色 |
|
||||||
| `docs/new-app-guide.md` | 新規アプリ作成の手順と各種ダッシュボード更新のチェックリスト |
|
| `docs/new-app-guide.md` | 新規アプリ作成の手順と各種ダッシュボード更新のチェックリスト |
|
||||||
|
| `docs/disaster-recovery.md` | PC 完全消失時の復元手順(posimai-root / claude-memory の clone 手順)|
|
||||||
| `posimai-dashboard/src/data/projects.json` | 全アプリのステータス・技術スタック |
|
| `posimai-dashboard/src/data/projects.json` | 全アプリのステータス・技術スタック |
|
||||||
| `memory/MEMORY.md` | AI 固有の記憶(`claude-memory` リポジトリへも push して同期すること) |
|
| `memory/MEMORY.md` | AI 固有の記憶(`claude-memory` リポジトリへも push して同期すること) |
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,52 @@
|
||||||
|
# Posimai Project — ディザスタリカバリ
|
||||||
|
|
||||||
|
PC 完全消失時の復元手順。
|
||||||
|
|
||||||
|
## バックアップリポジトリ
|
||||||
|
|
||||||
|
| リポジトリ | Gitea(ローカル) | GitHub(クラウド) | 内容 |
|
||||||
|
|-----------|-----------------|-----------------|------|
|
||||||
|
| `posimai-root` | `http://100.76.7.3:3000/mai/posimai-root` | `https://github.com/posimai/posimai-root` (private) | CLAUDE.md / _template / server.js / scripts / deploy-server.sh / claude-settings.json |
|
||||||
|
| `claude-memory` | `http://100.76.7.3:3000/mai/claude-memory` | `https://github.com/posimai/claude-memory` (private) | ~/.claude/memory 以下の全記憶ファイル |
|
||||||
|
|
||||||
|
## 新マシンでの復元手順
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# 1. GitHub CLI 認証
|
||||||
|
gh auth login
|
||||||
|
|
||||||
|
# 2. posimai-root を clone(CLAUDE.md・設定類を復元)
|
||||||
|
git clone https://github.com/posimai/posimai-root.git "C:/Users/maita/posimai-project"
|
||||||
|
cd "C:/Users/maita/posimai-project"
|
||||||
|
git remote add gitea http://100.76.7.3:3000/mai/posimai-root.git
|
||||||
|
|
||||||
|
# 3. Claude Code settings を復元
|
||||||
|
cp "C:/Users/maita/posimai-project/claude-settings.json" "C:/Users/maita/.claude/settings.json"
|
||||||
|
|
||||||
|
# 4. claude-memory を clone(AI 記憶を復元)
|
||||||
|
git clone https://github.com/posimai/claude-memory.git "C:/Users/maita/.claude/projects/c--Users-maita-posimai-project/memory"
|
||||||
|
cd "C:/Users/maita/.claude/projects/c--Users-maita-posimai-project/memory"
|
||||||
|
git remote add gitea http://100.76.7.3:3000/mai/claude-memory.git
|
||||||
|
|
||||||
|
# 5. 各アプリを必要に応じて clone
|
||||||
|
# git clone https://github.com/posimai/[app-name].git "C:/Users/maita/posimai-project/[app-name]"
|
||||||
|
# cd [app-name] && git remote add gitea http://100.76.7.3:3000/mai/[app-name].git
|
||||||
|
```
|
||||||
|
|
||||||
|
## posimai-root の更新方法(CLAUDE.md・server.js 等を変更した後)
|
||||||
|
|
||||||
|
```bash
|
||||||
|
cd C:/Users/maita/posimai-project
|
||||||
|
git add CLAUDE.md AGENTS.md claude-settings.json _template/ deploy-server.sh scripts/ server.js docs/
|
||||||
|
git commit -m "chore: update ..."
|
||||||
|
git push gitea main && git push github main
|
||||||
|
```
|
||||||
|
|
||||||
|
## claude-memory の更新方法(AI が記憶を更新した後)
|
||||||
|
|
||||||
|
```bash
|
||||||
|
cd "C:/Users/maita/.claude/projects/c--Users-maita-posimai-project/memory"
|
||||||
|
git add .
|
||||||
|
git commit -m "chore: update memory"
|
||||||
|
git push gitea main && git push github main
|
||||||
|
```
|
||||||
Loading…
Reference in New Issue