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673bd45084978c390b2ff4cb3d6d676)
| Author | SHA1 | Message | Date |
|---|---|---|---|
|
|
e59c8b421e |
Env-driven seed for admin user, API key, and webhook URL
Adds `config/initializers/env_seed.rb` — idempotent, resilient
boot-time seeder that replaces both the manual /setup wizard run and
our standalone `bin/seed-docuseal-webhook` script. Works in dev and
prod: just set the env vars in the deploy config.
When `DOCUSEAL_ADMIN_EMAIL` + `DOCUSEAL_ADMIN_PASSWORD` are set, on
every boot the initializer upserts:
* Account (org row, name/timezone/locale from env)
* User (admin, password updated only if encrypted_password blank)
* AccessToken (rewritten when `DOCUSEAL_API_KEY` set and differs)
* EncryptedConfig APP_URL_KEY + ESIGN_CERTS_KEY
* WebhookUrl (when `DOCUSEAL_WEBHOOK_URL` set; events optional)
Resilience:
* Skips quietly when admin email/password missing — `/setup` still works
* Catches NoDatabaseError / ConnectionNotEstablished / StatementInvalid
so `db:create` before `db:migrate` doesn't crash boot
* Re-runs are no-ops (find_or_initialize_by + diff before save)
* Survives DB drop + recreate: rows are re-seeded on next boot
.env.example documents the new vars.
|
3 months ago |