19 lines
444 B
Bash
Executable File
19 lines
444 B
Bash
Executable File
#!/bin/sh
|
|
set -e
|
|
|
|
echo "Starting deployment..."
|
|
|
|
# Run migrations
|
|
echo "Running database migrations..."
|
|
npx prisma migrate deploy
|
|
|
|
# Run release year migration (only if not already done)
|
|
if [ ! -f /app/.release-years-migrated ]; then
|
|
echo "Running release year migration (this will take ~12 seconds for 600 songs)..."
|
|
node scripts/migrate-release-years.mjs
|
|
fi
|
|
|
|
# Start the application
|
|
echo "Starting application..."
|
|
exec node server.js
|