-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(comfy-ui): more user-friendly starting/saving scripts
- Loading branch information
1 parent
2a8e411
commit deac2ed
Showing
4 changed files
with
56 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/bash | ||
|
||
# create a ComfyUI Manager snapshot | ||
curl -H 'Comfy-User;' http://localhost:8188/api/snapshot/save | ||
|
||
# run the script | ||
docker exec comfyui /opt/ComfyUI/save-changeset.sh | ||
|
||
# stop the container | ||
docker stop comfyui | ||
|
||
# show the folder with changeset | ||
npx -y -q opener ./changeset |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
# Ensure local folders exists | ||
mkdir -p models changeset snapshots | ||
|
||
# Start the dev container with folder mounts | ||
docker run -d \ | ||
-it \ | ||
--name comfyui \ | ||
--publish 8188:8188 \ | ||
--mount type=bind,source="$(pwd)"/models,target=/opt/ComfyUI/models \ | ||
--mount type=bind,source="$(pwd)"/changeset,target=/opt/ComfyUI/changeset \ | ||
--mount type=bind,source="$(pwd)"/snapshots,target=/opt/ComfyUI/user/default/ComfyUI-Manager/snapshots/ \ | ||
comfyui | ||
|
||
echo Waiting for ComfyUI to start... | ||
until curl --output /dev/null --silent --head --fail http://localhost:8188; do | ||
printf '.' | ||
sleep 1 | ||
done | ||
npx -y -q opener http://localhost:8188 |