File size: 541 Bytes
e53c2d7
af76282
016f117
 
af76282
c322041
579de4c
9f5c887
408d6ea
af76282
9f5c887
90510a1
af76282
a4ef141
 
 
016f117
2148654
 
a4ef141
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/env sh
echo "step 0 is ready"
# Run initializer and wait for it to complete
python -m app.initializer
echo "step 1 is ready"

# Start Qdrant in the background with fresh storage snapshot directory
rm -rf ./database/*  # Clear old data
qdrant --config-path config.yaml &
echo "step 2 is ready"
# Wait longer for Qdrant to spin up
sleep 1
echo "step 3 is ready"

python -m app.automigration
echo "step 4 is ready"
# Start the main application
uvicorn app.api:api --host 0.0.0.0 --port 7860
#python -m app.main
echo "step 5 is ready"