← back to Designerwallcoverings

ecosystem.config.js

21 lines

module.exports = {
  apps: [{
    name: 'designerwallcoverings.ai',
    script: 'server.js',
    cwd: '/root/Projects/designerwallcoverings',
    instances: 1,
    exec_mode: 'fork',
    env: {
      NODE_ENV: 'production',
      PORT: 9925,
      BIND: '127.0.0.1',
    },
    env_file: '/root/Projects/designerwallcoverings/.env',
    autorestart: true,
    max_memory_restart: '256M',
    out_file: '/root/.pm2/logs/designerwallcoverings.ai-out.log',
    error_file: '/root/.pm2/logs/designerwallcoverings.ai-err.log',
    merge_logs: true,
  }],
};