24 files changed
+11
-596
No files matched your search
+7
-10
@@ -10,17 +10,14 @@
|
||||
# fresh container is left empty and shows the installation wizard.
|
||||
set -e
|
||||
|
||||
if [ "${MANAGER_MODE:-false}" = "true" ]; then
|
||||
echo "[entrypoint] Starting in NextChair Manager mode; skipping business database bootstrap."
|
||||
else
|
||||
echo "[entrypoint] Applying database migrations..."
|
||||
npx prisma migrate deploy
|
||||
echo "[entrypoint] Applying database migrations..."
|
||||
npx prisma migrate deploy
|
||||
|
||||
# Optional — only provisions/syncs a Super Administrator when
|
||||
# SUPER_ADMIN_EMAIL is set (see scripts/ensure-super-admin.ts).
|
||||
echo "[entrypoint] Syncing Super Administrator..."
|
||||
npx tsx scripts/ensure-super-admin.ts
|
||||
fi
|
||||
# Optional — only provisions/syncs a Super Administrator when
|
||||
# SUPER_ADMIN_EMAIL is set (see scripts/ensure-super-admin.ts). Runs after
|
||||
# migrations so the User.isSuperAdmin column always exists by this point.
|
||||
echo "[entrypoint] Syncing Super Administrator..."
|
||||
npx tsx scripts/ensure-super-admin.ts
|
||||
|
||||
echo "[entrypoint] Starting application..."
|
||||
# `exec` + calling the `next` binary directly (not `npm run start`) so
|
||||
|
||||
Reference in new issue
Block a user