the-ultimate-rag / start.sh
PopovDanil's picture
try 2
a7007e3
raw
history blame contribute delete
604 Bytes
#!/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"