Skip to content

Instantly share code, notes, and snippets.

@Limbicnation
Created October 7, 2024 20:46
Show Gist options
  • Save Limbicnation/fe3558e1eb31c6e00d97f3b30cda3120 to your computer and use it in GitHub Desktop.
Save Limbicnation/fe3558e1eb31c6e00d97f3b30cda3120 to your computer and use it in GitHub Desktop.
The run_comfyui_wsl.sh script is a bash script designed for automating the process of updating and running the ComfyUI project in a WSL (Windows Subsystem for Linux) environment.
#!/bin/bash
# Source Conda environment script to make 'conda' available in WSL
if [ -f "/home/username/anaconda3/etc/profile.d/conda.sh" ]; then
source "/home/username/anaconda3/etc/profile.d/conda.sh"
else
echo "Conda initialization script not found. Please check your Conda installation."
exit 1
fi
# Activate the 'comfyui' Conda environment
conda activate comfyui
# Navigate to the ComfyUI directory
cd ~/GitHub/ComfyUI || { echo "Directory ~/GitHub/ComfyUI not found!"; exit 1; }
# Pull the latest changes from the Git repository and install dependencies
git pull && pip install -r requirements.txt
# Run the main Python script
python main.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment