From 8747b5bfac61161e32c4d498ec715aedbeaa7dda Mon Sep 17 00:00:00 2001 From: hwhung Date: Wed, 6 May 2026 21:06:21 +0800 Subject: [PATCH] Clarify deployment workflow startup --- readme.md | 4 ++-- setup.md | 12 +++++++++--- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/readme.md b/readme.md index e511658..a73fc4b 100644 --- a/readme.md +++ b/readme.md @@ -65,8 +65,8 @@ These can be overridden with CLI flags or environment variables: - `--port` or `PORT` - `--proxy-api-key` or `PROXY_API_KEY` -For mass deployments, pass the generated token with `--proxy-api-key`. The app will use that -token as the required `Authorization: Bearer ...` value. +For mass deployments, put the generated token directly in the Replit workflow run command with +`--proxy-api-key`. The app will use that token as the required `Authorization: Bearer ...` value. ## Verify diff --git a/setup.md b/setup.md index da72144..5b0fcdd 100644 --- a/setup.md +++ b/setup.md @@ -4,7 +4,8 @@ Goal: get the app running once, with Replit AI Integrations wired, on port 3000. Bearer token for this deployment: DEPLOYMENT_GENERATED_PROXY_TOKEN -Use that exact token as the proxy bearer token. Do not invent, rotate, print, store, or replace it. +Use that exact token as the proxy bearer token in the run command. Do not invent, rotate, print, +or replace it. Do not ask for another token. Do not: - add it to a parent workspace @@ -14,6 +15,8 @@ Do not: - create config.json or /tmp config files - inspect/free unrelated ports - use nohup/setsid/background shell tricks +- run a foreground server command directly in the shell +- set secrets or environment variables for the proxy token - run verification commands - run chat-completion smoke tests unless asked @@ -25,11 +28,14 @@ Steps: - OpenAI - Anthropic -3. Start the app with this command: +3. Create or update one persistent Replit workflow named "Random Proxy Simple" with this exact +run command: cd random-proxy-simple && pnpm dev -- --proxy-api-key DEPLOYMENT_GENERATED_PROXY_TOKEN -4. Do not run health, dashboard, model-list, or chat-completion verification commands. +4. Start/restart that workflow once. + +5. Do not run health, dashboard, model-list, or chat-completion verification commands. Report only: - local URL