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: docs/docs/07-Development/01-setup.md
+3-1
Original file line number
Diff line number
Diff line change
@@ -4,13 +4,15 @@
4
4
### First Setup
5
5
6
6
- You'll need to prepare the environment variables for the dev env.
7
-
- Easiest would be to set it up once in the root of the repo and then symlink it in each app directory.
7
+
- Easiest would be to set it up once in the root of the repo and then symlink it in each app directory (e.g. `/apps/web`, `/apps/workers`) and also `/packages/db`.
8
8
- Start by copying the template by `cp .env.sample .env`.
9
9
- The most important env variables to set are:
10
10
-`DATA_DIR`: Where the database and assets will be stored. This is the only required env variable. You can use an absolute path so that all apps point to the same dir.
11
+
-`NEXTAUTH_SECRET`: Random string used to sign the JWT tokens. Generate one with `openssl rand -base64 36`. Logging in will not work if this is missing!
11
12
-`REDIS_HOST` and `REDIS_PORT` default to `localhost` and `6379` change them if redis is running on a different address.
12
13
-`MEILI_ADDR`: If not set, search will be disabled. You can set it to `http://127.0.0.1:7700` if you run meilisearch using the command below.
13
14
-`OPENAI_API_KEY`: If you want to enable auto tag inference in the dev env.
15
+
- run `pnpm run db:migrate` in the root of the repo to set up the database.
0 commit comments