Skip to content

Commit

Permalink
fix: typeormConfig 파일에 환경변수로 연결 (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
yubinquitous committed Oct 31, 2023
1 parent a5c860b commit 098d6f8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/common/config/typeorm.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ import { TypeOrmModuleOptions } from '@nestjs/typeorm';

export const typeOrmConfig: TypeOrmModuleOptions = {
type: 'postgres',
host: 'web-db',
host: process.env.POSTGRES_HOST,
port: 5432,
username: process.env.POSTGRES_USER,
password: process.env.POSTGRES_PASSWORD,
database: process.env.POSTGRES_NAME,
database: process.env.POSTGRES_DB,
entities: [__dirname + '/../**/*.entities.{js,ts}'],
synchronize: true,
};
2 changes: 1 addition & 1 deletion web-config

0 comments on commit 098d6f8

Please sign in to comment.