card_svr/ecosystem.config.js
2021-01-29 19:17:55 +08:00

45 lines
1.3 KiB
JavaScript

module.exports = {
apps: [
{
port : 2567,
name : "card-proxy",
script : "./node_modules/@colyseus/proxy/bin/proxy",
instances : 1,
exec_mode : 'cluster',
env: {
PORT: 2567,
}
},
{
name : "card_svr",
script : "dist/index.js", // your entrypoint file
watch : true, // optional
instances : 2,
exec_mode : 'fork', // IMPORTANT: do not use cluster mode.
increment_var : 'PORT', // increment a environment variable for each instance launched
// error_file : '', // error日志路径
// out_file : '', // out日志路径
env: {
PORT: 4000,
DEBUG: "colyseus:errors,colyseus:matchmaking,jc:*",
NODE_ENV: "production",
}
},
{
name : "card_bot",
script : "dist/robot.js", // your entrypoint file
watch : true, // optional
instances : 1,
exec_mode : 'fork', // IMPORTANT: do not use cluster mode.
// error_file : '', // error日志路径
// out_file : '', // out日志路径
env: {
PORT: 2500,
DEBUG: "colyseus:errors,jc:*",
NODE_ENV: "production",
}
}
]
}