Skip to content

Commit

Permalink
Update text
Browse files Browse the repository at this point in the history
  • Loading branch information
YanWenKun committed Mar 24, 2024
1 parent 7dd70bf commit 4b337ee
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 3 deletions.
6 changes: 5 additions & 1 deletion README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -273,14 +273,18 @@ However, the image's script only install one custom node (ComfyUI-Manager). You
====


### Pre-start script
### Pre-start scripts

You can create your own pre-start script at
----
./storage/scripts/pre-start.sh
----
It will run before ComfyUI starts, handy for debugging.
Also, if you need to setup proxy, this script will start before `pre-start` and `download` :
----
./storage/scripts/set-proxy.sh
----
## License
Expand Down
25 changes: 25 additions & 0 deletions README.zh.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,31 @@ https://github.com/WASasquatch/was-node-suite-comfyui/blob/main/requirements.txt
./storage/scripts/pre-start.sh
----
如果你需要单独设置代理,可以创建这个文件,它会在 `pre-start` 和 `download` 之前运行:
----
./storage/scripts/set-proxy.sh
----
.参考文本:
[%collapsible]
====
[source,sh]
----
export HTTP_PROXY=http://host.docker.internal:1081
export HTTPS_PROXY=$HTTP_PROXY
export http_proxy=$HTTP_PROXY
export https_proxy=$HTTP_PROXY
export NO_PROXY="localhost,*.local,*.internal,[::1],fd00::/7,
10.0.0.0/8,127.0.0.0/8,169.254.0.0/16,172.16.0.0/12,192.168.0.0/16,
10.*,127.*,169.254.*,172.16.*,172.17.*,172.18.*,172.19.*,172.20.*,
172.21.*,172.22.*,172.23.*,172.24.*,172.25.*,172.26.*,172.27.*,
172.28.*,172.29.*,172.30.*,172.31.*,172.32.*,192.168.*,
*.cn,ghproxy.com,*.ghproxy.com,ghproxy.org,*.ghproxy.org,
gh-proxy.com,*.gh-proxy.com,ghproxy.net,*.ghproxy.net"
export no_proxy=$NO_PROXY
echo "[INFO] Proxy set to $HTTP_PROXY"
----
====
## 声明
Expand Down
6 changes: 5 additions & 1 deletion scripts/download.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

echo "########################################"
echo "Downloading ComfyUI & components..."
echo "[INFO] Downloading ComfyUI & Manager..."
echo "########################################"

set -euxo pipefail
Expand All @@ -18,6 +18,10 @@ git clone --depth=1 --no-tags --recurse-submodules --shallow-submodules \
https://github.com/ltdrdata/ComfyUI-Manager.git \
|| (cd /home/runner/ComfyUI/custom_nodes/ComfyUI-Manager && git pull)

echo "########################################"
echo "[INFO] Downloading Models..."
echo "########################################"

# Models
cd /home/runner/ComfyUI
aria2c --input-file=/home/scripts/download.txt \
Expand Down
2 changes: 1 addition & 1 deletion scripts/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ fi ;


echo "########################################"
echo "Starting ComfyUI..."
echo "[INFO] Starting ComfyUI..."
echo "########################################"

export PATH="${PATH}:/home/runner/.local/bin"
Expand Down

0 comments on commit 4b337ee

Please sign in to comment.