#!/bin/bash set -e echo "🚀 Starting StyleGPT Milestone 2..." # Run migrations using compiled JS if [ -f "dist/scripts/run-migrations.js" ]; then echo "📦 Running database migrations..." node dist/scripts/run-migrations.js || echo "⚠️ Migrations completed or skipped" else echo "⚠️ Migration script not found, skipping..." fi # Start the application echo "✅ Starting server on port ${PORT:-7860}..." exec node dist/index.js