Skip to content

Commit 6d50f13

Browse files
[feat ✨] drizzle studio setup ❤️‍🔥
1 parent 97cf2e9 commit 6d50f13

6 files changed

Lines changed: 9 additions & 7890 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ package-lock.json
1313
/.next/
1414
/out/
1515
drizzle
16+
package-lock.json
1617

1718
# production
1819
/build

docker-compose.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ services:
55
restart: always
66
container_name: find-devs-db
77
ports:
8-
- 5000:5000
8+
- 5432:5432
99
environment:
10-
POSTGRES_PASSWORD: sabbir
10+
POSTGRES_PASSWORD: sabbir
1111
PGDATA: /data/postgres
1212
volumes:
1313
- postgres:/data/postgres
1414

1515
volumes:
16-
postgres:
16+
postgres:

drizzle.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import { defineConfig } from "drizzle-kit";
22
import dotenv from "dotenv";
33
dotenv.config();
44

5+
if (!process.env.DATABASE_URI) throw new Error("DATABASE_URL is missing");
56
export const DATABASE_URI = process.env.DATABASE_URI;
6-
if (!DATABASE_URI) throw new Error("DATABASE_URL is missing");
77

88
export default defineConfig({
99
schema: "./src/schemas/*",

0 commit comments

Comments
 (0)