Files
you-music/backend/start.sh
T
2025-10-30 22:35:02 +11:00

15 lines
311 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
exec uvicorn main:app --host 0.0.0.0 --port 8000