summaryrefslogtreecommitdiff
path: root/ecosystem.config.js
blob: 7ff4d71ab54c8893dbcdc19bd985ca091148d925 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
module.exports = {
  apps: [
    {
      name: 'evcp',
      script: './node_modules/next/dist/bin/next',
      args: 'start',
      cwd: './',
      instances: 1,
      autorestart: true,
      watch: false,
      max_memory_restart: '8G',
      env: {
        NODE_ENV: 'production',
      },
      // 로그 설정
      error_file: '~/.pm2/logs/evcp-error.log',
      out_file: '~/.pm2/logs/evcp-out.log',
      log_date_format: 'YYYY-MM-DD HH:mm:ss Z',
      merge_logs: true,
      time: true
    }
  ]
};