55 lines
2.0 KiB
JavaScript
55 lines
2.0 KiB
JavaScript
|
|
module.exports = {
|
|
apps: [
|
|
{
|
|
port : 2567,
|
|
name : "card-proxy",
|
|
script : "./node_modules/@colyseus/proxy/bin/proxy",
|
|
instances : 1,
|
|
exec_mode : 'cluster',
|
|
error_file : '/data/logs/card_svr/error/proxy_error.log', // error日志路径
|
|
out_file : '/data/logs/card_svr/out/proxy_info.log', // out日志路径
|
|
log_date_format: "YYYY-MM-DD HH:mm:ss",
|
|
cwd : '/data/apps/card_svr',
|
|
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 : '/data/logs/card_svr/error/card_svr_error.log', // error日志路径
|
|
out_file : '/data/logs/card_svr/out/card_svr_info.log', // out日志路径,
|
|
log_date_format: "YYYY-MM-DD HH:mm:ss",
|
|
cwd : '/data/apps/card_svr',
|
|
env: {
|
|
PORT: 4000,
|
|
// DEBUG: "colyseus:errors,colyseus:matchmaking,jc:*",
|
|
DEBUG: "colyseus:errors,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 : '/data/logs/card_svr/error/robot_error.log', // error日志路径
|
|
out_file : '/data/logs/card_svr/out/robot_info.log', // out日志路径
|
|
log_date_format: "YYYY-MM-DD HH:mm:ss",
|
|
cwd : '/data/apps/card_svr',
|
|
max_memory_restart: '300M',
|
|
env: {
|
|
PORT: 2500,
|
|
DEBUG: "colyseus:errors,jc:*",
|
|
NODE_ENV: "production",
|
|
}
|
|
}
|
|
]
|
|
}
|