Spaces:
Running
Running
File size: 455 Bytes
ee0bba4 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
#!/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
|