Skip to content

AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.

feat(server) Update readme (#7580)

Aarushi7b8928f49b46
diff --git a/rnd/autogpt_server/.env.example b/rnd/autogpt_server/.env.example
index 85ed6025d5..d8b201297a 100644
--- a/rnd/autogpt_server/.env.example
+++ b/rnd/autogpt_server/.env.example
@@ -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"
diff --git a/rnd/autogpt_server/README.advanced.md b/rnd/autogpt_server/README.advanced.md
index 6f6efaeba3..b7133b3e61 100644
--- a/rnd/autogpt_server/README.advanced.md
+++ b/rnd/autogpt_server/README.advanced.md
@@ -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