File tree Expand file tree Collapse file tree 3 files changed +8
-5
lines changed
Expand file tree Collapse file tree 3 files changed +8
-5
lines changed Original file line number Diff line number Diff line change 11import { config } from "dotenv" ;
22import { defineConfig } from "drizzle-kit" ;
33
4- config ( { path : "../../. env" } ) ;
4+ config ( { path : "../.env" } ) ;
55
66export default defineConfig ( {
77 dialect : "postgresql" ,
8- out : "./drizzle" ,
9- schema : "./drizzle/schema.ts" ,
8+ out : "./src/ drizzle" ,
9+ schema : "./src/ drizzle/schema.ts" ,
1010 dbCredentials : {
11- host : "localhost" ,
11+ host : process . env . POSTGRES_HOST ! ,
1212 port : Number ( process . env . PGPORT ! ) ,
1313 user : process . env . POSTGRES_USER ! ,
1414 password : process . env . POSTGRES_PASSWORD ! ,
Original file line number Diff line number Diff line change 77 "esModuleInterop" : true ,
88 "strict" : true ,
99 "skipLibCheck" : true
10- }
10+ },
11+ "include" : [" src" ],
12+ "exclude" : [" drizzle.config.ts" ]
1113}
Original file line number Diff line number Diff line change @@ -49,6 +49,7 @@ services:
4949 volumes :
5050 - ./backend/src:/usr/local/app/backend/src
5151 - ./backend/tsconfig.json:/usr/local/app/backend/tsconfig.json
52+ - ./backend/drizzle.config.ts:/usr/local/app/backend/drizzle.config.ts
5253 depends_on :
5354 - postgres
5455 - redis
You can’t perform that action at this time.
0 commit comments