History

Update Assistant server port and configuration

- Changed the default port for the Assistant server from 3000 to 3002 in various configuration files. - Updated the `.env.example` to reflect the new `ASSISTANT_PORT` variable. - Adjusted the `dev.ts` script to utilize the new port and ensure proper environment variable handling. - Modified the README to document the updated Assistant server URL. - Removed deprecated typecheck declaration cache functionality and related tests to streamline the codebase.

Rhys Sullivan committed 9 months ago

Commit 2ed5c861 parent c0afbbd18 files · +27 −783Browse files

Showing the changes to dev.ts (1 of 18 files). Show all

Unified · Split

dev.ts+5−2
@@ -10,7 +10,7 @@ · 9 unmodified lines
10 * 2. Convex cloud dev function watcher │10 * 2. Convex cloud dev function watcher │
11 * 3. CF sandbox host worker (port 8787) ├─ all started concurrently11 * 3. CF sandbox host worker (port 8787) ├─ all started concurrently
12 * 4. Executor web UI (port 4312) │12 * 4. Executor web UI (port 4312) │
13 * 5. Assistant server (port 3000) │13 * 5. Assistant server (port 3002) │
14 * 6. Discord bot ─┘14 * 6. Discord bot ─┘
15 *15 *
16 * All processes are killed when this script exits (Ctrl+C).16 * All processes are killed when this script exits (Ctrl+C).
@@ -122,7 +122,8 @@ process.on("SIGTERM", shutdown); · 105 unmodified lines
122 122
123const EXECUTOR_WEB_PORT = Number(Bun.env.EXECUTOR_WEB_PORT ?? 4312);123const EXECUTOR_WEB_PORT = Number(Bun.env.EXECUTOR_WEB_PORT ?? 4312);
124const SANDBOX_PORT = Number(Bun.env.SANDBOX_PORT ?? 8787);124const SANDBOX_PORT = Number(Bun.env.SANDBOX_PORT ?? 8787);
125const DEV_PORTS = [3000, EXECUTOR_WEB_PORT, SANDBOX_PORT];125const ASSISTANT_PORT = Number(Bun.env.ASSISTANT_PORT ?? 3002);
126const DEV_PORTS = [ASSISTANT_PORT, EXECUTOR_WEB_PORT, SANDBOX_PORT];
126 127
127async function killStaleProcesses() {128async function killStaleProcesses() {
128 let killed = 0;129 let killed = 0;
@@ -198,6 +199,7 @@ spawnService("web", ["bun", "run", "dev"], { · 69 unmodified lines
198spawnService("assistant", ["bun", "run", "dev"], {199spawnService("assistant", ["bun", "run", "dev"], {
199 cwd: "./assistant/packages/server",200 cwd: "./assistant/packages/server",
200 env: {201 env: {
202 ASSISTANT_PORT: String(ASSISTANT_PORT),
201 EXECUTOR_URL: urls.executorUrl,203 EXECUTOR_URL: urls.executorUrl,
202 CONVEX_URL: urls.convexUrl,204 CONVEX_URL: urls.convexUrl,
203 EXECUTOR_ANON_SESSION_ID: Bun.env.EXECUTOR_ANON_SESSION_ID ?? "assistant-discord-dev",205 EXECUTOR_ANON_SESSION_ID: Bun.env.EXECUTOR_ANON_SESSION_ID ?? "assistant-discord-dev",
@@ -209,6 +211,7 @@ if (Bun.env.DISCORD_BOT_TOKEN) { · 5 unmodified lines
209 spawnService("bot", ["bun", "run", "dev"], {211 spawnService("bot", ["bun", "run", "dev"], {
210 cwd: "./assistant/packages/bot",212 cwd: "./assistant/packages/bot",
211 env: {213 env: {
214 ASSISTANT_SERVER_URL: Bun.env.ASSISTANT_SERVER_URL ?? `http://localhost:${ASSISTANT_PORT}`,
212 CONVEX_URL: urls.convexUrl,215 CONVEX_URL: urls.convexUrl,
213 },216 },
214 });217 });

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t