Key additions: * Separate platform Manager stack: [stacks/manager/compose.yaml] * Dedicated manager authentication with signed sessions. * Business overview dashboard. * Add Business workflow with slug suggestions and deployment progress. * Business detail page with start, stop, restart, update, logs, Dockge, and conservative removal actions. * Explicit management API endpoints under [src/app/api/manager] * Shared provisioning service layer in [provisioning.service.ts] * CLI and UI now use the same [create-business.sh] provisioning logic. * Registry metadata, database status, container health, and media usage reporting. * Manager-only entrypoint mode that does not require a business database. * Updated deployment documentation with Manager setup and Caddy routing. Validation passed: * Infra, Caddy, Manager, and generated business Compose configurations. * Shell syntax checks. * Registry generation with registry image tags. * git diff --check.
This commit is contained in:
24 files changed
+596
-11
No files matched your search
+10
-7
@@ -10,14 +10,17 @@
|
||||
# fresh container is left empty and shows the installation wizard.
|
||||
set -e
|
||||
|
||||
echo "[entrypoint] Applying database migrations..."
|
||||
npx prisma migrate deploy
|
||||
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
|
||||
|
||||
# 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
|
||||
# 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
|
||||
|
||||
echo "[entrypoint] Starting application..."
|
||||
# `exec` + calling the `next` binary directly (not `npm run start`) so
|
||||
|
||||
Reference in new issue
Block a user