From 16c261a8a539a7b3fc2962d68655e3da5b4aea26 Mon Sep 17 00:00:00 2001 From: Baptiste Arnaud Date: Mon, 20 Mar 2023 07:38:47 +0100 Subject: [PATCH] :pencil2: Fix old packages/db paths in documentation --- README.md | 2 +- apps/docs/docs/self-hosting/manual.md | 4 ++-- apps/docs/docs/self-hosting/planetscale.md | 4 ++-- package.json | 2 +- scripts/viewer-entrypoint.sh | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 83512c0a3..f60f32841 100644 --- a/README.md +++ b/README.md @@ -63,7 +63,7 @@ Interested in self-hosting Typebot on your server? Take a look at the [self-host Copy `apps/viewer/.env.local.example` to `apps/viewer/.env.local` - Copy `packages/db/.env.example` to `packages/db/.env` + Copy `packages/prisma/.env.example` to `packages/prisma/.env` Check out the [Configuration guide](https://docs.typebot.io/self-hosting/configuration) if you want to enable more options diff --git a/apps/docs/docs/self-hosting/manual.md b/apps/docs/docs/self-hosting/manual.md index 6aff7ecc7..52afcdffd 100644 --- a/apps/docs/docs/self-hosting/manual.md +++ b/apps/docs/docs/self-hosting/manual.md @@ -29,9 +29,9 @@ git clone git@github.com:/typebot.io.git ```sh cd typebot.io # check out the latest stable version or the one you want to use -git checkout v2.9.1 +git checkout latest # copy the example env file -cp packages/db/.env.example packages/db/.env +cp packages/prisma/.env.example packages/prisma/.env cp apps/builder/.env.local.example apps/builder/.env.local cp apps/viewer/.env.local.example apps/viewer/.env.local ``` diff --git a/apps/docs/docs/self-hosting/planetscale.md b/apps/docs/docs/self-hosting/planetscale.md index 7029f453a..65e27bcfe 100644 --- a/apps/docs/docs/self-hosting/planetscale.md +++ b/apps/docs/docs/self-hosting/planetscale.md @@ -4,8 +4,8 @@ Typebot is also pluggable to a Planetscale database. But it means, you'll need t 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` +1. Copy `packages/prisma/.env.example` to `packages/prisma/.env` and replace `DATABASE_URL` with a development branch +2. From the `packages/prisma` 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. :::note diff --git a/package.json b/package.json index c3798760c..005563b0a 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,7 @@ "build:viewer": "turbo run build --filter=viewer... && turbo run build:env --filter=viewer...", "build:landing-page": "turbo run build --filter=landing-page... && turbo run build:env --filter=landing-page...", "build:apps": "turbo run build --filter=builder... --filter=viewer...", - "db:migrate": "cd packages/db && pnpm run db:migrate", + "db:migrate": "cd packages/prisma && pnpm run db:migrate", "generate-change-log": "git fetch --all && pnpx gitmoji-changelog" }, "devDependencies": { diff --git a/scripts/viewer-entrypoint.sh b/scripts/viewer-entrypoint.sh index ab15e281a..b9101518a 100644 --- a/scripts/viewer-entrypoint.sh +++ b/scripts/viewer-entrypoint.sh @@ -2,6 +2,6 @@ ENVSH_ENV=./apps/viewer/.env.production ENVSH_OUTPUT=./apps/viewer/public/__env.js bash env.sh -./node_modules/.bin/prisma generate --schema=packages/db/postgresql/schema.prisma; +./node_modules/.bin/prisma generate --schema=packages/prisma/postgresql/schema.prisma; node apps/viewer/server.js; \ No newline at end of file