shrimppiehotelrwanda commited on
Commit
b7a8012
·
verified ·
1 Parent(s): d50ee85

Create start.sh

Browse files
Files changed (1) hide show
  1. start.sh +21 -0
start.sh ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/bash
2
+ set -e
3
+
4
+ # Activate virtual environment
5
+ source $HOME/.venv/bin/activate
6
+
7
+ echo "Current PATH: $PATH"
8
+ echo "INVOKEAI_ROOT: $INVOKEAI_ROOT"
9
+ echo "Python version: $(python --version)"
10
+ echo "Pip version: $(pip --version)"
11
+
12
+ # Create INVOKEAI_ROOT directory if it doesn't exist
13
+ mkdir -p $INVOKEAI_ROOT
14
+
15
+ # Copy invokeai.yaml to INVOKEAI_ROOT if it doesn't exist
16
+ if [ ! -f "$INVOKEAI_ROOT/invokeai.yaml" ]; then
17
+ cp $HOME/invokeai.yaml $INVOKEAI_ROOT/invokeai.yaml
18
+ fi
19
+
20
+ # Run invokeai-web
21
+ exec invokeai-web