docs(trellis): update for cloud supabase migration
This commit is contained in:
@@ -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
|
||||
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user