Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 1 addition & 8 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
# Database connection URL for local PostgreSQL
# Connect to the 'superset' database
DATABASE_URL=postgresql://postgres:postgres@localhost:5432/superset

STUB_API_KEY=

# Electron Desktop App
# Vite dev server port for Electron renderer process
# Default: 4927. Auto-increments when creating new worktrees to avoid port conflicts
VITE_DEV_SERVER_PORT=4927
DATABASE_URL=postgresql://postgres:postgres@localhost:5432/superset
22 changes: 0 additions & 22 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -179,28 +179,6 @@ const result = await window.ipcRenderer.invoke("my-channel", {
- `types.ts` - Data models
- `ipc-channels.ts` - IPC type definitions

### Running Multiple Instances

You can run multiple Electron instances simultaneously for parallel development. See `apps/desktop/MULTIPLE_INSTANCES.md` for full documentation.

**Quick start:**
```bash
# Method 1: Auto-increment port when creating worktrees
# The update-port.sh script runs automatically during worktree setup
# and increments VITE_DEV_SERVER_PORT in the root .env

# Method 2: Manual port update
./update-port.sh # Increments port in root .env
cd apps/desktop && bun dev

# Method 3: Helper scripts (override .env)
./dev-instance.sh instance2 4928
```

Each instance needs:
- **Separate dev server port** - Set via `VITE_DEV_SERVER_PORT` in root `.env`
- **Separate user data directory** - Pass via `--user-data-dir` flag

### Environment Variable Loading

The desktop app loads environment variables from the monorepo root `.env` file:
Expand Down
Loading