#!/bin/sh
set -e

echo "==> Running database migrations..."
/app/bin/migrate

echo "==> Seeding admin user from ENV (ADMIN_EMAIL, ADMIN_PASSWORD)..."
/app/bin/mv eval "Mv.Release.seed_admin()"

echo "==> Starting application..."
exec /app/bin/server

