← back to Wine Finder Next

ecosystem.config.js

18 lines

module.exports = {
  apps: [{
    name: 'wine-finder-next',
    script: 'node_modules/next/dist/bin/next',
    args: 'start',
    cwd: '/root/Projects/wine-finder-next',
    env: {
      NODE_ENV: 'production',
      PORT: 7250
    },
    instances: 1,
    exec_mode: 'fork',
    autorestart: true,
    watch: false,
    max_memory_restart: '1G'
  }]
}