Upload start.sh with huggingface_hub
Browse files
start.sh
CHANGED
@@ -12,6 +12,10 @@ mkdir -p /app/ComfyUI/input
|
|
12 |
mkdir -p /app/ComfyUI/output
|
13 |
mkdir -p /app/workflows
|
14 |
|
|
|
|
|
|
|
|
|
15 |
# List the contents of key directories to debug
|
16 |
echo "Checking for workflow files:"
|
17 |
ls -la /app/workflows/ || echo "Workflow directory empty or not found"
|
@@ -33,10 +37,10 @@ if [ ! -s "/app/ComfyUI/input/paita2.jpg" ] || grep -q "version https://git-lfs.
|
|
33 |
curl -L -o /app/ComfyUI/input/paita2.jpg "https://huggingface.co/spaces/Defter77/Avatars/resolve/main/ComfyUI/input/paita2.jpg"
|
34 |
fi
|
35 |
|
36 |
-
# Start ComfyUI in the background
|
37 |
cd /app/ComfyUI
|
38 |
echo "Starting ComfyUI server..."
|
39 |
-
python3 main.py --listen 0.0.0.0 --port 8188 &
|
40 |
COMFY_PID=$!
|
41 |
|
42 |
# Wait for ComfyUI to start
|
|
|
12 |
mkdir -p /app/ComfyUI/output
|
13 |
mkdir -p /app/workflows
|
14 |
|
15 |
+
# Create user directory with proper permissions
|
16 |
+
mkdir -p /tmp/comfyui_user
|
17 |
+
chmod 777 /tmp/comfyui_user
|
18 |
+
|
19 |
# List the contents of key directories to debug
|
20 |
echo "Checking for workflow files:"
|
21 |
ls -la /app/workflows/ || echo "Workflow directory empty or not found"
|
|
|
37 |
curl -L -o /app/ComfyUI/input/paita2.jpg "https://huggingface.co/spaces/Defter77/Avatars/resolve/main/ComfyUI/input/paita2.jpg"
|
38 |
fi
|
39 |
|
40 |
+
# Start ComfyUI in the background with custom user directory
|
41 |
cd /app/ComfyUI
|
42 |
echo "Starting ComfyUI server..."
|
43 |
+
python3 main.py --listen 0.0.0.0 --port 8188 --user-dir /tmp/comfyui_user &
|
44 |
COMFY_PID=$!
|
45 |
|
46 |
# Wait for ComfyUI to start
|