Files
macos-tools/stable-diffusion/start-comfyui.sh
bruno 435834dc79 feat: Harbor 版本化配置
- 添加 Harbor 快速恢复脚本 (harbor-quick-restore.sh)
- 添加完整恢复指南 (HARBOR-RESTORE-GUIDE.md)
- 添加版本信息文件 (VERSION.md)
- 更新 .gitignore 排除敏感数据
- 配置 harbor git remote
- 修复 Cloudflare Tunnel 配置

系统重装后可通过以下命令快速恢复:
git clone http://192.168.1.83:33000/gao/ljwx-harbor.git
cd ljwx-harbor
./harbor-quick-restore.sh
2026-02-27 08:12:30 +08:00

33 lines
781 B
Bash
Executable File

#!/bin/bash
# ComfyUI 一键启动脚本
# One-click startup script for ComfyUI
set -e
# 颜色输出
GREEN='\033[0;32m'
BLUE='\033[0;34m'
RED='\033[0;31m'
NC='\033[0m' # No Color
echo -e "${BLUE}=== ComfyUI 启动脚本 ===${NC}"
# 激活 conda 环境
echo -e "${GREEN}[1/3] 激活 conda 环境...${NC}"
source ~/miniforge3/etc/profile.d/conda.sh
conda activate comfy
# 切换到 ComfyUI 目录
echo -e "${GREEN}[2/3] 切换到 ComfyUI 目录...${NC}"
cd /Users/brunogao/ComfyUI
# 启动 ComfyUI
echo -e "${GREEN}[3/3] 启动 ComfyUI...${NC}"
echo -e "${BLUE}访问地址: http://localhost:8188${NC}"
echo -e "${BLUE}或者: http://0.0.0.0:8188${NC}"
echo -e "${RED}注意: FP8 量化模型使用 CPU 模式${NC}"
echo ""
python main.py --listen 0.0.0.0 --port 8188 --cpu