Andrchest commited on
Commit
a4ef141
·
1 Parent(s): b8507bb

final try 63

Browse files
Files changed (2) hide show
  1. app/automigration.py +4 -0
  2. start.sh +4 -1
app/automigration.py ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ from app.backend.models.db_service import automigrate
2
+
3
+ if __name__ == '__main__':
4
+ automigrate()
start.sh CHANGED
@@ -11,7 +11,10 @@ echo "step 2 is ready"
11
  # Wait longer for Qdrant to spin up
12
  sleep 10
13
  echo "step 3 is ready"
 
 
 
14
  # Start the main application
15
  uvicorn app.api:api --host 0.0.0.0 --port 7860
16
  #python -m app.main
17
- echo "step 4 is ready"
 
11
  # Wait longer for Qdrant to spin up
12
  sleep 10
13
  echo "step 3 is ready"
14
+
15
+ python -m app.automigration
16
+ echo "step 4 is ready"
17
  # Start the main application
18
  uvicorn app.api:api --host 0.0.0.0 --port 7860
19
  #python -m app.main
20
+ echo "step 5 is ready"