Files
2025-11-07 12:28:28 +11:00

16 lines
432 B
Bash
Executable File

#!/bin/bash
# Startup script that runs migrations then starts the app
set -e
echo "🔄 Running database migrations..."
cd /app/backend
alembic upgrade head
echo "✅ Migrations complete!"
echo "🚀 Starting YouMusic application..."
# Start the application with single worker (required for SQLite)
# Using --workers 1 ensures no concurrent writes to SQLite database
exec uvicorn main:app --host 0.0.0.0 --port 8000 --workers 1