From 46e9271aaa051a4b3e0fd3c52867b1b7d978b0b8 Mon Sep 17 00:00:00 2001 From: Baptiste Arnaud Date: Mon, 13 Feb 2023 10:25:43 +0100 Subject: [PATCH] :pencil: Add a planetscale guide Closes #287 --- apps/docs/docs/self-hosting/planetscale.md | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 apps/docs/docs/self-hosting/planetscale.md diff --git a/apps/docs/docs/self-hosting/planetscale.md b/apps/docs/docs/self-hosting/planetscale.md new file mode 100644 index 000000000..e4f7d24b0 --- /dev/null +++ b/apps/docs/docs/self-hosting/planetscale.md @@ -0,0 +1,9 @@ +# Using a Planetscale database + +Typebot is also pluggable to a Planetscale database. But it means, you'll need to push schema changes manually, yourself. + +To do so, follow these instructions: + +1. Copy `packages/db/.env.example` to `packages/db/.env` and replace `DATABASE_URL` with a development branch +2. From the `packages/db` directory, run a the db push command: `pnpm run db:push` +3. Then, in Planetscale dashboard, or using their CLI, you can create a new deploy request from this development branch to your production branch.