← back to Freddy

ecosystem.config.js

18 lines

module.exports = {
  apps: [
    {
      name: 'freddy-app',
      script: 'node_modules/.bin/next',
      args: 'start -p 7470',
      cwd: '/root/Projects/Freddy',
      env: {
        NODE_ENV: 'production',
        PORT: '7470',
      },
      instances: 1,
      autorestart: true,
      max_memory_restart: '512M',
    },
  ],
};