Native systemd install (matches Ollama pattern on Arch — Docker on mRock has no nvidia runtime; native venv via uv is the lighter path). The Black-Forest-Labs FLUX.1-schnell HF repo is gated, so the download script points at ungated mirrors (Comfy-Org/flux1-schnell + sirorable/flux-ae-vae) that ship the same Apache-2.0 weights. First image — cat in a fishbowl, 1024x1024, 4 steps — generated end-to-end in 9.79s via curl + workflow JSON; stored at /home/m/dev/ImaGen/poc/first-image.png on mRiver (not committed; transient PoC artefact). Go adapter is phase 2.
25 lines
591 B
Desktop File
25 lines
591 B
Desktop File
[Unit]
|
|
Description=ComfyUI image generation server
|
|
Documentation=https://github.com/comfyanonymous/ComfyUI
|
|
After=network-online.target
|
|
Wants=network-online.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
User=m
|
|
Group=m
|
|
WorkingDirectory=/home/m/dev/comfyui
|
|
ExecStart=/home/m/dev/comfyui/.venv/bin/python /home/m/dev/comfyui/main.py \
|
|
--listen 0.0.0.0 --port 8188 \
|
|
--output-directory /home/m/dev/comfyui/output \
|
|
--temp-directory /home/m/dev/comfyui/temp
|
|
Restart=on-failure
|
|
RestartSec=5
|
|
TimeoutStopSec=30
|
|
NoNewPrivileges=true
|
|
PrivateTmp=true
|
|
LimitNOFILE=65535
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|