diff --git a/.env.example b/.env.example index 17504880b7..792ab3dbd9 100644 --- a/.env.example +++ b/.env.example @@ -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 \ No newline at end of file diff --git a/AGENTS.md b/AGENTS.md index a7d1c9434e..042b0e1411 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -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: