feat(server) Update readme (#7580)

update readme
This commit is contained in:
Aarushi
2024-07-24 10:53:09 +01:00
committed by GitHub
parent 699087e289
commit 7b8928f49b
2 changed files with 15 additions and 7 deletions

View File

@@ -1,6 +1,6 @@
DATABASE_URL="postgresql://${DB_USER}:${DB_PASS}@localhost:${DB_PORT}/${DB_NAME}"
DB_USER=agpt_user
DB_PASS=pass123
DB_NAME=agpt_local
DB_PORT=5432
PRISMA_SCHEMA="schema_postgres.prisma"
DATABASE_URL="postgresql://${DB_USER}:${DB_PASS}@localhost:${DB_PORT}/${DB_NAME}"
PRISMA_SCHEMA="postgres/schema.prisma"

View File

@@ -28,7 +28,13 @@ We use the Poetry to manage the dependencies. To set up the project, follow thes
poetry install
```
4. Generate the Prisma client
4. Copy .env.example to .env
```sh
cp env.example .env
```
5. Generate the Prisma client
```sh
poetry run prisma generate --schema postgres/schema.prisma
@@ -44,17 +50,19 @@ We use the Poetry to manage the dependencies. To set up the project, follow thes
> Then run the generation again. The path *should* look something like this:
> `<some path>/pypoetry/virtualenvs/autogpt-server-TQIRSwR6-py3.12/bin/prisma`
5. Run the postgres database from the /rnd folder
6. Run the postgres database from the /rnd folder
```sh
cd rnd/
docker compose up -d
```
```
6. Run the migrations
7. Run the migrations (from the autogpt_server folder)
```sh
cd ../autogpt_server
prisma migrate dev --schema postgres/schema.prisma
```
```
## Running The Server