feat: add runpod environment with variables and fix workflow paths

- Add runpod env with AI_ROOT, COMFYUI_ROOT, HF_CACHE, LOGS_DIR, BIN_DIR
- Update workflows/link-comfyui to use $AI_ROOT for absolute paths
- Workflows will now link correctly from /workspace/ai/comfyui/workflows
This commit is contained in:
2025-11-22 21:12:45 +01:00
parent 257c4aeaac
commit a4771f7139

View File

@@ -70,6 +70,14 @@ references:
# Environment profiles for selective repository management
envs:
# RunPod environment variables
runpod:
AI_ROOT: /workspace/ai
COMFYUI_ROOT: /workspace/ComfyUI
HF_CACHE: /workspace/huggingface_cache
LOGS_DIR: /workspace/logs
BIN_DIR: /workspace/bin
# Production: Only essential components
prod:
- $AI_ROOT
@@ -607,7 +615,8 @@ scripts:
# Clear existing workflow symlinks to avoid conflicts
find . -type l -name "*.json" -delete
SOURCE_DIR="comfyui/workflows"
# Absolute path to workflows from /workspace/ai
SOURCE_DIR="$AI_ROOT/comfyui/workflows"
# Text-to-Image workflows (prefix: t2i_)
for file in "$SOURCE_DIR/text-to-image"/*.json; do