File tree Expand file tree Collapse file tree 2 files changed +14
-1
lines changed
Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -125,10 +125,21 @@ Update your `.env` file with the database URL:
125125DATABASE_URL=" postgresql://postgres:your_password@localhost:5432/simstudio"
126126```
127127
128- 4 . Set up the database (from packages/db) :
128+ 4 . Set up the database:
129129
130+ First, configure the database package environment:
130131``` bash
131132cd packages/db
133+ cp .env.example .env
134+ ```
135+
136+ Update your ` packages/db/.env ` file with the database URL:
137+ ``` bash
138+ DATABASE_URL=" postgresql://postgres:your_password@localhost:5432/simstudio"
139+ ```
140+
141+ Then run the migrations:
142+ ``` bash
132143bunx drizzle-kit migrate --config=./drizzle.config.ts
133144```
134145
Original file line number Diff line number Diff line change 1+ # Database URL (Required for migrations and database operations)
2+ DATABASE_URL = " postgresql://postgres:password@localhost:5432/simstudio"
You can’t perform that action at this time.
0 commit comments