Files

12 lines
298 B
Bash
Executable File

#!/bin/sh
set -e
echo "==> Syncing SQLite schema..."
npx prisma db push --skip-generate
echo "==> Initializing default accounts & roles if database is empty..."
node prisma/seed.js
echo "==> Starting EnterpriseCore ERP on port ${PORT:-3005}..."
exec npx next start -H 0.0.0.0 -p "${PORT:-3005}"