#!/bin/sh
# Falah Mobile — container startup script
cd /app
# Run Prisma migrations against the volume-mounted DB
node ./node_modules/prisma/build/index.js db push --skip-generate --accept-data-loss 2>&1
# Force 0.0.0.0 binding (Docker sets HOSTNAME to container ID)
export HOSTNAME=0.0.0.0
exec node server.js
