Skip to content

Commit

Permalink
added a script to simplify installing + running the launcher with the…
Browse files Browse the repository at this point in the history
… manual setup
  • Loading branch information
thecooltechguy committed Feb 26, 2024
1 parent 7d28b2c commit d79f0d8
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 10 deletions.
15 changes: 5 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ https://github.com/ComfyWorkflows/ComfyUI-Launcher/assets/33400216/aa17680d-eee5

## Requirements

#### Windows (Windows Subsystem for Linux - WSL2) & Linux:
#### Windows (Windows Subsystem for Linux - WSL) & Linux:
- Docker (w/ GPU support) or Python 3

#### macOS:
Expand All @@ -38,7 +38,7 @@ https://github.com/ComfyWorkflows/ComfyUI-Launcher/assets/33400216/aa17680d-eee5

### Option 1: Docker (recommended)

Only works for **Linux** & **Windows (WSL2)**. For **macOS**, use Option 2.
Only works for **Linux** & **Windows (WSL)**. For **macOS**, use Option 2.

```
docker run \
Expand All @@ -54,21 +54,18 @@ docker run \
Open http://localhost:4000 in your browser

### Option 2: Manual setup
Works for **Windows (WSL2)**, **Linux**, & **macOS**
Works for **Windows (WSL)**, **Linux**, & **macOS**

#### Installation (one-time setup)
```
git clone https://github.com/ComfyWorkflows/comfyui-launcher
cd comfyui-launcher/
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
chmod +x run.sh
```

#### Start ComfyUI Launcher
```
source venv/bin/activate
cd server/ && python server.py
./run.sh
```
Open http://localhost:4000 in your browser

Expand All @@ -82,8 +79,6 @@ docker pull thecooltechguy/comfyui_launcher
### Option 2: Manual setup
```
git pull
source venv/bin/activate
pip install -r requirements.txt
```

## Coming soon
Expand Down
17 changes: 17 additions & 0 deletions run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# check if a venv/ directory exists
# if it doesn't, run: python3 -m venv venv
# then run: source venv/bin/activate && pip install -r requirements.txt
if [ ! -d "venv" ]; then
echo "Creating virtual environment for ComfyUI Launcher...\n\n"
python3 -m venv venv
echo "\n\n"
fi

echo "Installing required packages...\n\n"
source venv/bin/activate
pip install -r requirements.txt

echo "\n\n"
echo "ComfyUI Launcher is starting...\n\n"

cd server/ && python server.py

0 comments on commit d79f0d8

Please sign in to comment.