15 lines
289 B
Bash
15 lines
289 B
Bash
#!/bin/sh
|
|
set -e
|
|
|
|
echo "=== MPC Service Starting ==="
|
|
echo "Syncing database schema..."
|
|
|
|
# Sync database schema (create tables if not exist)
|
|
npx prisma db push --accept-data-loss
|
|
|
|
echo "Database schema synced"
|
|
echo "Starting application..."
|
|
|
|
# Start the application
|
|
exec node dist/main.js
|