#!/bin/sh set -e # Export version if available if [ -f /app/version.txt ]; then export APP_VERSION=$(cat /app/version.txt) echo "App version: $APP_VERSION" fi echo "Starting deployment..." # Run migrations echo "Running database migrations..." npx prisma migrate deploy # Start the application echo "Starting application..." exec node server.js