💾 1. Persistent Storage (Crucial)
Hiroshi stores conversational memory states, SQLite WAL databases, and active system configurations inside~/.hiroshi/.
- When deploying to container-based hosts, you must mount a persistent disk volume to
/root/.hiroshi/(or the home directory configured for the container user) to prevent memory loss during service redeployments.
🌐 2. Platform Blueprints
Render (Web Service)
- Environment: Choose
DockerorWeb Servicewith native binary configuration. - Build Command:
cargo build --release(or precompile and upload to reduce build runtime). - Start Command:
./target/release/hiroshi daemon - Disk: Mount a Persistent Volume at
/root/.hiroshi/.
Railway
- Volume: Attach a Persistent Volume to your service.
- Mount Path:
/root/.hiroshi/ - Execution Command:
./target/release/hiroshi daemon