First-time setup (SQLite migrations)
If using SQLite with persistence, run migrations before starting:make atlas-install
Quick start
- Set env vars:
- Run the service (from repo root):
Default port:
8080.
Sync org and user (required for UI)
Statesman resolves orgs byexternal_org_id (your WorkOS org id). If it cannot resolve, /internal/api/units will 500.
A helper script is available at taco/cmd/statesman/sync-org.sh - edit the values before running:
Troubleshooting
- āno such table: organizationsā: Run migrations first (see First-time setup above).
- Atlas checksum mismatch: Run
atlas migrate hash --dir file://migrations/sqlitethen retry apply. - 403: webhook secret mismatch (
OPENTACO_ENABLE_INTERNAL_ENDPOINTSvs UISTATESMAN_BACKEND_WEBHOOK_SECRET). - 404/500 resolving org: org not synced; rerun the sync script or
orgs/synccall above. - SQLite quirks: defaults to SQLite in-process; no config needed for local. For Postgres/MySQL, set
TACO_QUERY_BACKENDand related envs (seedocs/ce/state-management/query-backend).

