Create azurestartscript.sh

This commit is contained in:
NitishTRI3D
2023-10-31 22:24:59 +05:30
committed by GitHub
parent aee1a75132
commit 7bfe205fcf
+17
View File
@@ -0,0 +1,17 @@
#!/bin/bash
# Navigate to the project directory
cd /home/ubuntu/GITHUB/comfyanonymous/ComfyUI
# Activate the Anaconda environment
. /opt/anaconda/bin/activate
conda activate comfy
# Start a new tmux session or connect to an existing one
if ! tmux has-session -t run 2>/dev/null; then
tmux new-session -d -s run
tmux send-keys -t run 'python main.py --port 3000' C-m
fi
# Attach to the tmux session
tmux attach-session -t run