feat: add script to launch Image Studio with local ComfyUI server

This commit is contained in:
syntaxbullet
2026-07-11 15:11:22 +02:00
parent 5915c62a9a
commit f4e13b80e7
3 changed files with 89 additions and 0 deletions

View File

@@ -36,6 +36,19 @@ Start the development server:
bun dev
```
To start Image Studio together with the local headless ComfyUI server:
```bash
bun run dev:full
```
The combined launcher reuses a ComfyUI server already listening at
`http://127.0.0.1:8188`. Otherwise, it starts the existing local ComfyUI
installation and stops that process when Image Studio exits. Its paths and
address can be overridden with the `COMFYUI_BASE_DIR`, `COMFYUI_SOURCE_DIR`,
`COMFYUI_PYTHON`, `COMFYUI_MODEL_PATHS_CONFIG`, `COMFYUI_HOST`, and
`COMFYUI_PORT` environment variables.
Build for production:
```bash
@@ -53,6 +66,7 @@ bun start
| Command | Description |
| --- | --- |
| `bun dev` | Start the app with Bun hot reload |
| `bun run dev:full` | Start the app and local headless ComfyUI server |
| `bun run build` | Build the production bundle |
| `bun start` | Run the production server |
| `bun test` | Run tests |