mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-24 09:28:31 +00:00
* Chore: db:seed script for first user setup Replaces the stale commented-out seed script with a working HTTP-based implementation that calls POST /api/onboarding/setup-super-admin — the exact same endpoint QA uses via curl. This ensures the seed creates all required database records (org, user, roles, environments, groups, themes, default data sources, instance settings) without duplicating any business logic. Supports env var overrides (SEED_EMAIL, SEED_PASSWORD, SEED_NAME, SEED_WORKSPACE) for CI/preview deployments. Idempotent — skips if users already exist. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * Chore: use got instead of raw http, improve re-seed message Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * Chore: trim verbose logs from seed script Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * Chore: remove redundant comment Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> --------- |
||
|---|---|---|
| .. | ||
| services | ||
| boot.sh | ||
| ce-preview.sh | ||
| create-database.ts | ||
| database-config-utils.ts | ||
| digitalocean-postbuild.sh | ||
| drop-database.ts | ||
| env-utils.ts | ||
| init-db-boot.sh | ||
| plugins-install.ts | ||
| plugins-reload.ts | ||
| plugins-uninstall.ts | ||
| populate-sample-db.ts | ||
| preview.sh | ||
| rotate-lockbox-key.ts | ||
| sample-db-config-reset.ts | ||
| seeds.ts | ||
| wait-for-it.sh | ||