docs(trellis): update for cloud supabase migration

This commit is contained in:
qzl
2026-04-27 10:04:29 +08:00
parent 5325793203
commit 926929a3cb
2 changed files with 47 additions and 2 deletions
+28
View File
@@ -101,6 +101,34 @@ cat .trellis/spec/backend/logging-guidelines.md # For logging
4. **Record Promptly** - Update tracking files immediately after completion
5. **Document Limits** - [!] **Max 2000 lines per journal document**
### Development Environment
**Cloud Supabase Setup:**
1. Configure `.env` with Supabase Cloud credentials:
```bash
ERYAO_SUPABASE__PUBLIC_URL=https://<project-ref>.supabase.co
ERYAO_DATABASE__HOST=aws-1-us-east-2.pooler.supabase.com
ERYAO_DATABASE__PORT=5432 # Session pooler
```
2. Start Redis (required for backend):
```bash
cd infra/docker && docker compose up -d redis
```
3. Run database migrations:
```bash
./infra/scripts/dev-migrate.sh bootstrap
```
4. Start backend server:
```bash
./infra/scripts/app.sh start
```
**Note:** Local Supabase is no longer used. All development uses Supabase Cloud.
### File System
```