File size: 604 Bytes
48ec4db
a7007e3
 
48ec4db
 
 
a7007e3
48ec4db
 
a7007e3
 
48ec4db
 
 
a7007e3
48ec4db
 
 
a7007e3
48ec4db
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/env sh
set -e  # Exit on any error

echo "Starting initialization..."

# Run initializer
python -m app.initializer || { echo "Initializer failed"; exit 1; }
echo "Initializer complete"

# Clear Qdrant storage (if needed)
rm -rf ./database/* || { echo "Failed to clear Qdrant storage"; exit 1; }
echo "Qdrant storage cleared"

# Run automigration
python -m app.automigration || { echo "Automigration failed"; exit 1; }
echo "Automigration complete"

# Start all services with supervisord
supervisord -c supervisord.conf || { echo "Supervisord failed to start"; exit 1; }
echo "Services started"