mirror of
https://github.com/wahyd4/you-music.git
synced 2026-08-08 20:59:47 +10:00
16 lines
432 B
Bash
Executable File
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
|