Skip to content

Commit

Permalink
✏️ Fix old packages/db paths in documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
baptisteArno committed Mar 20, 2023
1 parent b3e5887 commit 16c261a
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions apps/docs/docs/self-hosting/manual.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ git clone git@github.com:<username>/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
```
Expand Down
4 changes: 2 additions & 2 deletions apps/docs/docs/self-hosting/planetscale.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
2 changes: 1 addition & 1 deletion scripts/viewer-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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;

0 comments on commit 16c261a

Please sign in to comment.