#!/bin/sh
set -e

echo "======================================"
echo "Backend Startup Script"
echo "======================================"

# Flyway is now responsible for database migrations
# Alembic has been deprecated in favor of Flyway
echo "Skipping Alembic migrations (handled by Flyway service)"

echo "======================================"
echo "Starting backend application..."
echo "======================================"

# Start the actual application
exec uvicorn app.main:app --host 0.0.0.0 --port 8000 --workers 4 $RELOAD_FLAG
