mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2026-09-06 14:17:12 +08:00
Add instructions for staging development. (#14)
This commit is contained in:
parent
864d0f7395
commit
019ec67e1d
@ -6,6 +6,18 @@ Below are a collection of nodes that work by calling external APIs. More informa
|
|||||||
|
|
||||||
## Development
|
## Development
|
||||||
|
|
||||||
|
While developing, you should be testing against the Staging environment. To test against staging:
|
||||||
|
|
||||||
|
**Install ComfyUI_frontend**
|
||||||
|
|
||||||
|
Follow the instructions [here](https://github.com/Comfy-Org/ComfyUI_frontend) to start the frontend server. By default, it will connect to Staging authentication.
|
||||||
|
|
||||||
|
> **Hint:** If you use --front-end-version argument for ComfyUI, it will use production authentication.
|
||||||
|
|
||||||
|
```bash
|
||||||
|
python run main.py --comfy-api-base https://stagingapi.comfy.org
|
||||||
|
```
|
||||||
|
|
||||||
API stubs are generated through automatic codegen tools from OpenAPI definitions. Since the Comfy Org OpenAPI definition contains many things from the Comfy Registry as well, we use redocly/cli to filter out only the paths relevant for API nodes.
|
API stubs are generated through automatic codegen tools from OpenAPI definitions. Since the Comfy Org OpenAPI definition contains many things from the Comfy Registry as well, we use redocly/cli to filter out only the paths relevant for API nodes.
|
||||||
|
|
||||||
### Redocly Instructions
|
### Redocly Instructions
|
||||||
@ -17,7 +29,7 @@ Before your API node PR merges, make sure to add the `Released` tag to the `open
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
# Download the OpenAPI file from prod server.
|
# Download the OpenAPI file from prod server.
|
||||||
curl -o openapi.yaml https://api.comfy.org/openapi
|
curl -o openapi.yaml https://stagingapi.comfy.org/openapi
|
||||||
|
|
||||||
# Filter out unneeded API definitions.
|
# Filter out unneeded API definitions.
|
||||||
npm install -g @redocly/cli
|
npm install -g @redocly/cli
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user