const os = require('os'); /** * COLYSEUS CLOUD WARNING: * ---------------------- * PLEASE DO NOT UPDATE THIS FILE MANUALLY AS IT MAY CAUSE DEPLOYMENT ISSUES */ module.exports = { apps: [ { port: 35000, name: "proxy", script: "./node_modules/@colyseus/proxy/bin/proxy", instances: 1, // scale this up if the proxy becomes the bottleneck exec_mode: 'cluster', env: { PORT: 80, REDIS_URL: "redis://:Rojeksoft_123/127.0.0.1:5230/2" } }, { name: "colyseus-app", script: './build/index.js', time: true, watch: false, instances: 2,//os.cpus().length, exec_mode: 'fork', wait_ready: true, env_production: { NODE_ENV: 'production' } }] };