Clarify deployment workflow startup
This commit is contained in:
@@ -65,8 +65,8 @@ These can be overridden with CLI flags or environment variables:
|
|||||||
- `--port` or `PORT`
|
- `--port` or `PORT`
|
||||||
- `--proxy-api-key` or `PROXY_API_KEY`
|
- `--proxy-api-key` or `PROXY_API_KEY`
|
||||||
|
|
||||||
For mass deployments, pass the generated token with `--proxy-api-key`. The app will use that
|
For mass deployments, put the generated token directly in the Replit workflow run command with
|
||||||
token as the required `Authorization: Bearer ...` value.
|
`--proxy-api-key`. The app will use that token as the required `Authorization: Bearer ...` value.
|
||||||
|
|
||||||
## Verify
|
## Verify
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
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:
|
Do not:
|
||||||
- add it to a parent workspace
|
- add it to a parent workspace
|
||||||
@@ -14,6 +15,8 @@ Do not:
|
|||||||
- create config.json or /tmp config files
|
- create config.json or /tmp config files
|
||||||
- inspect/free unrelated ports
|
- inspect/free unrelated ports
|
||||||
- use nohup/setsid/background shell tricks
|
- 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 verification commands
|
||||||
- run chat-completion smoke tests unless asked
|
- run chat-completion smoke tests unless asked
|
||||||
|
|
||||||
@@ -25,11 +28,14 @@ Steps:
|
|||||||
- OpenAI
|
- OpenAI
|
||||||
- Anthropic
|
- 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
|
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:
|
Report only:
|
||||||
- local URL
|
- local URL
|
||||||
|
|||||||
Reference in New Issue
Block a user