Skip to content

Commit 6fada45

Browse files
authored
improvement(readme): update readme.md (#1412)
1 parent e640102 commit 6fada45

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

README.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,10 +125,21 @@ Update your `.env` file with the database URL:
125125
DATABASE_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
131132
cd 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
132143
bunx drizzle-kit migrate --config=./drizzle.config.ts
133144
```
134145

packages/db/.env.example

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Database URL (Required for migrations and database operations)
2+
DATABASE_URL="postgresql://postgres:password@localhost:5432/simstudio"

0 commit comments

Comments
 (0)