#!/bin/sh
set -e

echo "Running database migrations..."
node /app/scripts/run-migrations.js

echo "Loading initial data if needed..."
node /app/scripts/load-initial-data.js

echo "Starting application..."
exec node server.js
