Skip to content

Commit

Permalink
match commit
Browse files Browse the repository at this point in the history
  • Loading branch information
jin20fd committed Nov 28, 2024
1 parent 15d85fc commit 7876644
Show file tree
Hide file tree
Showing 93 changed files with 2,749 additions and 749 deletions.
6 changes: 5 additions & 1 deletion BE/docker-compose.backend.local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,12 @@ services:

REDIS_HOST: redis
REDIS_PORT: 6379

LOGGER_DIR: /logs
expose:
- 3000
volumes:
- ./logs:/app/BE/logs

server_db:
image: mysql:8.0
Expand All @@ -42,7 +46,7 @@ services:
ports:
- "3306:3306"
volumes:
- ../db/server:/var/lib/mysql
- ../db/server:/var/lib/mysql
networks:
- backend

Expand Down
31 changes: 15 additions & 16 deletions BE/ecosystem.config.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
module.exports = {
apps: [
{
name: 'nest-server',
script: 'dist/main.js', // NestJS 서버의 진입 파일
instances: 'max', // 클러스터 모드: CPU 코어 수만큼 프로세스 실행
exec_mode: 'cluster', // 클러스터 모드
watch: true, // 파일 변경 감지 후 재시작
env: {
NODE_ENV: 'development',
},
env_production: {
NODE_ENV: 'production',
},
apps: [
{
name: 'nest-server',
script: 'dist/main.js', // NestJS 서버의 진입 파일
instances: 'max', // 클러스터 모드: CPU 코어 수만큼 프로세스 실행
exec_mode: 'cluster', // 클러스터 모드
watch: false, // 파일 변경 감지 후 재시작
env: {
NODE_ENV: 'development',
},
],
};

env_production: {
NODE_ENV: 'production',
},
},
],
};
Loading

0 comments on commit 7876644

Please sign in to comment.