mirror of
https://github.com/Significant-Gravitas/AutoGPT.git
synced 2026-04-08 03:00:28 -04:00
@@ -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"
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user