mirror of
https://github.com/garrytan/gbrain.git
synced 2026-07-27 22:15:33 +00:00
docs: update Supabase connection string instructions
New flow: Get Connected > Direct Connection String > Session Pooler > copy Shared Pooler. The old gear icon > Project Settings path is stale. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.6
parent
f37ef99795
commit
3ef38e8f5c
@@ -237,9 +237,10 @@ How many pages are in the brain now?
|
||||
GBrain keeps your brain current. After setup, `gbrain sync --watch` polls your git repo and imports only what changed. Binary files (images, PDFs, audio) can be moved to cloud storage with `gbrain files mirror` to slim down your git repo.
|
||||
|
||||
> **Supabase settings:** GBrain connects directly to Postgres (not the REST API).
|
||||
> You need the **Session pooler connection string** (port 6543), not the project URL
|
||||
> or anon key. Find it: Project Settings > Database > Connection string > URI tab >
|
||||
> change dropdown to "Session pooler".
|
||||
> You need the **Shared Pooler connection string**, not the project URL or anon key.
|
||||
> Find it: go to your project, click **Get Connected** next to the project URL,
|
||||
> then **Direct Connection String** > **Session Pooler**, and copy the
|
||||
> **Shared Pooler** connection string.
|
||||
|
||||
### GBrain without OpenClaw
|
||||
|
||||
|
||||
@@ -14,9 +14,11 @@ GBrain connects directly to Postgres over the wire protocol. NOT through the
|
||||
Supabase REST API. You need the **database connection string** (a `postgresql://` URI),
|
||||
not the project URL or anon key. The password is embedded in the connection string.
|
||||
|
||||
Use the **Session pooler** connection string (port 6543), not the direct connection
|
||||
Use the **Shared Pooler** connection string (port 6543), not the direct connection
|
||||
(port 5432). The direct hostname resolves to IPv6 only, which many environments
|
||||
can't reach.
|
||||
can't reach. Find it: go to the project, click **Get Connected** next to the
|
||||
project URL, then **Direct Connection String** > **Session Pooler**, and copy
|
||||
the **Shared Pooler** connection string.
|
||||
|
||||
**Do NOT ask for the Supabase anon key.** GBrain doesn't use it.
|
||||
|
||||
@@ -53,10 +55,9 @@ Guide the user through creating a Supabase project:
|
||||
- Region: pick the one closest to you
|
||||
- Database password: generate a strong one and save it
|
||||
3. "Wait about 2 minutes for the project to initialize."
|
||||
4. "Find the connection string: click the **gear icon** (Project Settings) in the
|
||||
left sidebar, then **Database**, scroll to **Connection string**, click the
|
||||
**URI** tab, change the dropdown from **Direct connection** to **Session pooler**
|
||||
(port 6543), and copy the full string."
|
||||
4. "Find the connection string: go to your project, click **Get Connected** next
|
||||
to the project URL, then **Direct Connection String** > **Session Pooler**,
|
||||
and copy the **Shared Pooler** connection string (port 6543)."
|
||||
5. Initialize gbrain:
|
||||
```bash
|
||||
gbrain init --non-interactive --url "postgresql://postgres.[ref]:[password]@aws-0-[region].pooler.supabase.com:6543/postgres"
|
||||
|
||||
Reference in New Issue
Block a user