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
Copy file name to clipboardExpand all lines: content/docs/guides/cloud-deployment.mdx
+26-30Lines changed: 26 additions & 30 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,25 +1,24 @@
1
1
---
2
2
title: Deployment & Multi-Project
3
-
description: Run a single ObjectStack Server process in single-kernel, multi-project (local sqlite) or multi-project (remote turso) shape. Covers env vars, hostname routing, and Fly.io / Docker deployment.
3
+
description: Run a single ObjectStack Server process in single-kernelor multi-project shape. Covers control-plane DB URLs, hostname routing, and Fly.io / Docker deployment.
4
4
---
5
5
6
6
# Deployment & Multi-Project
7
7
8
-
The same `apps/server` binary boots into one of three shapes. Which one you get
8
+
The same `apps/server` binary boots into one of two shapes. Which one you get
9
9
depends only on the environment variables you set — the code and Docker image
10
10
are identical.
11
11
12
12
| Shape | Control plane | Projects | Hostname routing | Typical use |
|`OBJECTSTACK_MULTI_PROJECT`| multi-project-local |`true` opts into the SQLite-backed control plane. |
176
-
|`OBJECTSTACK_CONTROL_DB`| multi-project-local | Filesystem path for the local control DB (default `./.objectstack/data/control.db`). |
177
-
|`OBJECTSTACK_CONTROL_PLANE_URL`| multi-project-remote | Presence opts into remote-Turso control plane. |
178
-
|`TURSO_DATABASE_URL`| multi-project-remote | Turso URL for the control DB. |
179
-
|`TURSO_AUTH_TOKEN`| multi-project-remote | Auth token for the control DB. |
173
+
|`OBJECTSTACK_MULTI_PROJECT`| all |`true` enables the multi-project control plane. Unset/false runs single-project mode. |
174
+
|`OBJECTSTACK_DATABASE_URL`| all | In `single`, the project business DB URL. In `multi-project`, the control-plane DB URL (`file:`, `libsql://`, or `https://`). |
175
+
|`OBJECTSTACK_DATABASE_AUTH_TOKEN`| all | Auth token for `OBJECTSTACK_DATABASE_URL` when using libSQL/Turso. |
180
176
|`TURSO_ORG_NAME` + `TURSO_API_TOKEN`| multi-project (any) | Used by `TursoProjectDatabaseAdapter` to provision per-project databases. |
181
177
|`OBJECTSTACK_KERNEL_CACHE_SIZE`| multi-project (any) | LRU size for per-project kernels (default 32, fly.toml defaults to 50). |
182
178
|`OBJECTSTACK_KERNEL_TTL_MS`| multi-project (any) | Idle eviction TTL in ms (default 900000, fly.toml defaults to 1800000). |
0 commit comments