﻿VPS IDE host (one folder upload)

Upload this folder to the server (e.g. rename to stackprompt). This tree is ROOT (parent of api/).

(1) ComfyUI - separate terminal or systemd
    cd engine/comfyui
    python3 main.py --listen 127.0.0.1 --port 8188 --enable-cors-header

(2) API - separate terminal or systemd
    export STACKPROMPT_COMFYUI_URL=http://127.0.0.1:8188
    cd api
    pip3 install -r requirements.txt
    python3 -m uvicorn server:app --host 127.0.0.1 --port 8000

(3) Browser
    http://127.0.0.1:8000/ide/image-studio.html
    Production: TLS at nginx, reverse-proxy to port 8000 (same origin).

(4) Models
    Place .safetensors under models/checkpoints/ (large; may rsync separately).

Note: engine/ is large. Windows embed python/ is NOT included - use system Python3 on Linux.
