You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you don't have Atlas installed: `make atlas-install`
22
+
7
23
## Quick start
8
24
9
25
1. Set env vars:
@@ -24,6 +40,15 @@ Statesman serves state storage + Terraform Cloud-compatible APIs. The UI uses it
24
40
25
41
Statesman resolves orgs by `external_org_id` (your WorkOS org id). If it cannot resolve, `/internal/api/units` will 500.
26
42
43
+
A helper script is available at `taco/cmd/statesman/sync-org.sh` - edit the values before running:
44
+
45
+
```bash
46
+
chmod +x taco/cmd/statesman/sync-org.sh
47
+
./taco/cmd/statesman/sync-org.sh
48
+
```
49
+
50
+
Or run manually:
51
+
27
52
```bash
28
53
SECRET=$OPENTACO_ENABLE_INTERNAL_ENDPOINTS
29
54
ORG_ID=org_xxx # WorkOS org id
@@ -49,6 +74,8 @@ curl -s -X POST http://localhost:8080/internal/api/users \
49
74
50
75
## Troubleshooting
51
76
77
+
-**"no such table: organizations"**: Run migrations first (see First-time setup above).
78
+
-**Atlas checksum mismatch**: Run `atlas migrate hash --dir file://migrations/sqlite` then retry apply.
52
79
-**403**: webhook secret mismatch (`OPENTACO_ENABLE_INTERNAL_ENDPOINTS` vs UI `STATESMAN_BACKEND_WEBHOOK_SECRET`).
53
-
-**404/500 resolving org**: org not synced; rerun the `orgs/sync` call above.
80
+
-**404/500 resolving org**: org not synced; rerun the sync script or `orgs/sync` call above.
54
81
-**SQLite quirks**: defaults to SQLite in-process; no config needed for local. For Postgres/MySQL, set `TACO_QUERY_BACKEND` and related envs (see `docs/ce/state-management/query-backend`).
0 commit comments