A year ago I was using this template v3.6.0 and I had set up a script that allowed me to run comfy update all and another script to restart comfy from the CLI
This worked well.
But now on 5.5.0 this no longer works.
Here's my old script
Update and create restartComfy.sh
"ln -nfs /comfyui /ComfyUI",
"pip install comfy-cli",
"cd /ComfyUI",
"comfy update all",
"echo 'kill \\\$(pgrep -f \\\"python3 /comfyui/main.py\\\") ; nohup python3 /comfyui/main.py --disable-auto-launch --disable-metadata --listen > /dev/null 2>&1 &' > /restartComfy.sh && chmod +x /restartComfy.sh",
Restart
On 5.5.0 I noticed that pip is not initially installed I tried to install it with apt install pipx and then I was able to install comfy-cli using pipx install comfy-cli
But then when I tried to run comfy update all I got this error No module named 'aiohttp'
But maybe there is a better way nowadays to update to the latest ComfyUI version and then do the necessary restart.
To be clear all of this needs to be done programatically, via SSH.
Any insight would be much appreciated! Thank you
A year ago I was using this template v3.6.0 and I had set up a script that allowed me to run
comfy update alland another script to restart comfy from the CLIThis worked well.
But now on 5.5.0 this no longer works.
Here's my old script
Update and create restartComfy.sh
Restart
On 5.5.0 I noticed that pip is not initially installed I tried to install it with
apt install pipxand then I was able to install comfy-cli usingpipx install comfy-cliBut then when I tried to run
comfy update allI got this errorNo module named 'aiohttp'But maybe there is a better way nowadays to update to the latest ComfyUI version and then do the necessary restart.
To be clear all of this needs to be done programatically, via SSH.
Any insight would be much appreciated! Thank you