Skip to content

Commit

Permalink
[BE] feat#241 자동배포 수정 (#243)
Browse files Browse the repository at this point in the history
* ci/cd: [BE] 자동배포 test

* ci/cd: [BE] 자동배포 test

* ci/cd: [BE] 자동배포 test

* ci/cd: [BE] 자동배포 테스트

* chore: [BE] 방 활동시간 인터셉터 한글패치

* chore: test용 브랜치 제거

* chore: test 코드 실행되도록 설정
  • Loading branch information
DongHoonYu96 authored Nov 21, 2024
1 parent a4cf563 commit b544916
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ jobs:
working-directory: ./BE
run: npm run test:e2e

# todo: FE 테스트 코드 실행
# todo: FE 테스트 코드 실행 2
# - name: FE 테스트 코드 실행
# working-directory: ./FE
# run: npm run test
Expand Down Expand Up @@ -118,7 +118,7 @@ jobs:
npm i
npx pm2 stop backend-server || true
cd /home/ubuntu/nest-server/current/BE
npx pm2 start dist/main.js --name "backend-server"
npx pm2 start dist/src/main.js --name "backend-server"
# todo: # FrontEnd 배포
# # Frontend 배포
Expand Down
2 changes: 1 addition & 1 deletion BE/src/game/interceptor/gameActivity.interceptor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export class GameActivityInterceptor implements NestInterceptor {
const data = context.switchToWs().getData();
if (data.gameId) {
await this.gameRoomService.updateRoomActivity(data.gameId);
this.logger.debug(`Activity updated for room ${data.gameId} after ${Date.now() - before}ms`);
this.logger.debug(`${data.gameId} 활동시간 갱신 완료 / after ${Date.now() - before}ms`);
}

return of(result);
Expand Down
10 changes: 5 additions & 5 deletions BE/test/integration/game.integration.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,18 +27,18 @@ import { QuizSetReadService } from '../../src/quiz-set/service/quiz-set-read.ser
import { QuizSetUpdateService } from '../../src/quiz-set/service/quiz-set-update.service';
import { QuizSetDeleteService } from '../../src/quiz-set/service/quiz-set-delete.service';
import { ExceptionMessage } from '../../src/common/constants/exception-message';
import { RedisSubscriberService } from '../../src/common/redis/redis-subscriber.service';
import { ScoringSubscriber } from '../../src/common/redis/subscribers/scoring.subscriber';
import { TimerSubscriber } from '../../src/common/redis/subscribers/timer.subscriber';
import { RoomSubscriber } from '../../src/common/redis/subscribers/room.subscriber';
import { PlayerSubscriber } from '../../src/common/redis/subscribers/player.subscriber';
import { RoomCleanupSubscriber } from '../../src/game/redis/subscribers/room.cleanup.subscriber';
import { JwtService } from '@nestjs/jwt';
import { AuthModule } from '../../src/auth/auth.module';
import { WsJwtAuthGuard } from '../../src/auth/guard/ws-jwt-auth.guard';
import { JwtStrategy } from '../../src/auth/guard/jwt.strategy';
import { AuthService } from '../../src/auth/auth.service';
import { UserService } from '../../src/user/user.service';
import { ScoringSubscriber } from '../../src/game/redis/subscribers/scoring.subscriber';
import { RedisSubscriberService } from '../../src/game/redis/redis-subscriber.service';
import { TimerSubscriber } from '../../src/game/redis/subscribers/timer.subscriber';
import { RoomSubscriber } from '../../src/game/redis/subscribers/room.subscriber';
import { PlayerSubscriber } from '../../src/game/redis/subscribers/player.subscriber';

/*disable eslint*/
const mockHttpService = {
Expand Down

0 comments on commit b544916

Please sign in to comment.