| # Free the ComfyUI port if something's already on it, then start ComfyUI | |
| # in the foreground on 7865 with the manager enabled. | |
| kill $(lsof -t -i :7865) 2>/dev/null | |
| cd /workspace/ComfyUI | |
| python main.py --listen 0.0.0.0 --port 7865 --enable-manager | |
| # Free the ComfyUI port if something's already on it, then start ComfyUI | |
| # in the foreground on 7865 with the manager enabled. | |
| kill $(lsof -t -i :7865) 2>/dev/null | |
| cd /workspace/ComfyUI | |
| python main.py --listen 0.0.0.0 --port 7865 --enable-manager | |