card_svr/ecosystem.config.js
2020-12-18 11:15:45 +08:00

37 lines
1.0 KiB
JavaScript

module.exports = {
apps: [
{
port : 2567,
name : "card-proxy",
script : "./node_modules/@colyseus/proxy/bin/proxy",
instances : 1, // scale this up if the proxy becomes the bottleneck
exec_mode : 'cluster',
},
{
port : 4000,
name : "card_svr",
script : "lib/index.js", // your entrypoint file
watch : true, // optional
instances : 2,
exec_mode : 'fork', // IMPORTANT: do not use cluster mode.
env: {
DEBUG: "colyseus:errors,colyseus:matchmaking,jc:*",
NODE_ENV: "production",
}
},
{
port : 2500,
name : "card_bot",
script : "lib/robot.js", // your entrypoint file
watch : true, // optional
instances : 1,
exec_mode : 'fork', // IMPORTANT: do not use cluster mode.
env: {
DEBUG: "colyseus:errors,jc:*",
NODE_ENV: "production",
}
}
]
}