updated deploy scripts and locations
This commit is contained in:
43
CLAUDE.md
43
CLAUDE.md
@@ -27,7 +27,7 @@ spr/
|
||||
├── artery/ # VERSIONED - Vital connections
|
||||
│ ├── veins/ # Single-responsibility connectors
|
||||
│ ├── pulses/ # Composed: Vein + Room + Depot
|
||||
│ ├── rooms/ # Environment configs
|
||||
│ ├── room/ # Base room code and ctrl templates
|
||||
│ └── depots/ # Data storage
|
||||
│
|
||||
├── atlas/ # VERSIONED - Documentation system
|
||||
@@ -54,18 +54,19 @@ spr/
|
||||
│ ├── requirements.txt # Dependencies
|
||||
│ └── dataloader/ # Data loading module
|
||||
│
|
||||
├── gen/ # RUNNABLE instance (gitignored, symlinks)
|
||||
│ ├── main.py # → ../soleprint/main.py
|
||||
│ ├── run.py # → ../soleprint/run.py
|
||||
│ ├── index.html # → ../soleprint/index.html
|
||||
│ ├── requirements.txt # → ../soleprint/requirements.txt
|
||||
│ ├── dataloader/ # → ../soleprint/dataloader/
|
||||
│ ├── artery/ # → ../artery/
|
||||
│ ├── atlas/ # → ../atlas/
|
||||
│ ├── station/ # → ../station/
|
||||
│ ├── data/ # → ../data/
|
||||
│ ├── cfg/ # Copied config
|
||||
│ └── models/ # GENERATED (one-time per client)
|
||||
├── gen/ # RUNNABLE instance (gitignored, copies)
|
||||
│ ├── main.py
|
||||
│ ├── run.py
|
||||
│ ├── index.html
|
||||
│ ├── requirements.txt
|
||||
│ ├── Dockerfile
|
||||
│ ├── dataloader/
|
||||
│ ├── artery/
|
||||
│ ├── atlas/
|
||||
│ ├── station/
|
||||
│ ├── data/
|
||||
│ ├── cfg/
|
||||
│ └── models/ # Generated by modelgen
|
||||
│ └── pydantic/
|
||||
│
|
||||
└── mainroom/ # Orchestration: soleprint ↔ managed room
|
||||
@@ -110,10 +111,8 @@ A **Room** is an environment with soleprint context, features, and conventions:
|
||||
### Mainroom
|
||||
The **mainroom** orchestrates interaction between soleprint and managed rooms:
|
||||
- `sbwrapper/` - Sidebar UI overlay for any managed app (quick login, Jira info, etc.)
|
||||
- `soleprint/` - Docker configs + ctrl scripts for running soleprint services
|
||||
- `ctrl/local/` - Local deployment scripts (push.sh, deploy.sh)
|
||||
- `ctrl/server/` - Server setup scripts
|
||||
- `ctrl/` - Mainroom-level orchestration commands
|
||||
- `soleprint/` - Docker configs for running soleprint services
|
||||
- `ctrl/` - Mainroom-level orchestration commands (start.sh, stop.sh, etc.)
|
||||
|
||||
Soleprint can run without a managed room (for testing veins, etc.).
|
||||
|
||||
@@ -125,11 +124,10 @@ Soleprint can run without a managed room (for testing veins, etc.).
|
||||
|
||||
### soleprint/ vs gen/
|
||||
- `soleprint/` = Versioned core files (main.py, run.py, dataloader, index.html)
|
||||
- `gen/` = Gitignored runnable instance with symlinks to soleprint/ + systems
|
||||
- `gen/models/` = Generated models (one-time per client, like an install)
|
||||
- `gen/` = Gitignored runnable instance (copies, not symlinks - Docker compatible)
|
||||
- `gen/models/` = Generated models
|
||||
|
||||
**Development:** Edit in soleprint/, artery/, atlas/, station/, data/ → run from gen/
|
||||
**Production:** Copy everything (resolve symlinks)
|
||||
**Development:** Edit source → `python build.py dev` → run from gen/
|
||||
|
||||
### Modelgen (Generic Tool)
|
||||
Lives in `station/tools/modelgen/`. It:
|
||||
@@ -146,8 +144,7 @@ The build script at spr root handles both development and deployment builds:
|
||||
|
||||
```bash
|
||||
# From spr/
|
||||
python build.py --help
|
||||
python build.py dev # Build with symlinks (soleprint only)
|
||||
python build.py dev # Build gen/ from source (copies)
|
||||
python build.py dev --cfg amar # Include amar room config
|
||||
python build.py deploy --output /path/ # Build for production
|
||||
python build.py models # Only regenerate models
|
||||
|
||||
Reference in New Issue
Block a user