Skip to content

Commit

Permalink
testing
Browse files Browse the repository at this point in the history
  • Loading branch information
KMUlee committed Apr 13, 2024
1 parent e60ae8f commit d7d00c5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
# 도커 이미지에 env 파일 포함
- name: Create .env file
run: |
echo "DB_HOST=${{ secrets.DB_HOST}}" >> .env
echo "DB_HOST=${{ secrets.DB_HOST }}" >> ./.env
# 도커 메타
- name: Docker meta
Expand Down
2 changes: 1 addition & 1 deletion src/configs/typeorm.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export const getTypeOrmConfig = (
configService: ConfigService,
): TypeOrmModuleOptions => ({
type: 'postgres',
host: process.env.DB_HOST,
host: process.env.DB_HOST || 'localhost',
port: 5432,
username: 'postgres',
password: '1234',
Expand Down
3 changes: 3 additions & 0 deletions src/user/user.module.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
import { Module } from '@nestjs/common';
import { UserController } from './user.controller';
import { UserService } from './user.service';
import { TypeOrmModule } from '@nestjs/typeorm';
import { User } from './entities/user.entity';

@Module({
imports: [TypeOrmModule.forFeature([User])],
controllers: [UserController],
providers: [UserService],
exports: [UserService],
Expand Down

0 comments on commit d7d00c5

Please sign in to comment.