Skip to content

Commit

Permalink
fix: status 확인 로직 수정 및 provider 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
flydog98 committed Dec 18, 2023
1 parent 4fefe38 commit 27a2c5e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/backend-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ jobs:
password: ${{ secrets.NGINX_SSH_PASSWORD }}
port: ${{ secrets.NGINX_SSH_PORT }}
script: |
CURRENT_STATE=$(curl -s http://${{ secrets.BLUE_GREEN_HOST }}:${{ secrets.BLUE_GREEN_PORT }}/status)
if [ "$CURRENT_STATE" = "green" ]; then
sed -i 's/8080/8081/' /etc/nginx/sites-available/default
else
Expand Down
2 changes: 2 additions & 0 deletions packages/backend/src/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import { LoggingInterceptor } from './common/logging.interceptor';
import { QuizWizardModule } from './quiz-wizard/quiz-wizard.module';
import { AiModule } from './ai/ai.module';
import { CommandModule } from './command/command.module';
import { ContainersService } from './containers/containers.service';

@Module({
imports: [
Expand Down Expand Up @@ -52,6 +53,7 @@ import { CommandModule } from './command/command.module';
provide: 'APP_INTERCEPTOR',
useClass: LoggingInterceptor,
},
ContainersService,
],
})
export class AppModule {}

0 comments on commit 27a2c5e

Please sign in to comment.