修改启动脚本
This commit is contained in:
parent
f4fc33be7b
commit
e1068d32a5
@ -5,25 +5,28 @@ module.exports = {
|
|||||||
port : 2567,
|
port : 2567,
|
||||||
name : "card-proxy",
|
name : "card-proxy",
|
||||||
script : "./node_modules/@colyseus/proxy/bin/proxy",
|
script : "./node_modules/@colyseus/proxy/bin/proxy",
|
||||||
instances : 1, // scale this up if the proxy becomes the bottleneck
|
instances : 1,
|
||||||
exec_mode : 'cluster',
|
exec_mode : 'cluster',
|
||||||
|
env: {
|
||||||
|
PORT: 2567,
|
||||||
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
port : 4000,
|
|
||||||
name : "card_svr",
|
name : "card_svr",
|
||||||
script : "lib/index.js", // your entrypoint file
|
script : "lib/index.js", // your entrypoint file
|
||||||
watch : true, // optional
|
watch : true, // optional
|
||||||
instances : 2,
|
instances : 2,
|
||||||
exec_mode : 'fork', // IMPORTANT: do not use cluster mode.
|
exec_mode : 'fork', // IMPORTANT: do not use cluster mode.
|
||||||
|
increment_var : 'PORT', // increment a environment variable for each instance launched
|
||||||
// error_file : '', // error日志路径
|
// error_file : '', // error日志路径
|
||||||
// out_file : '', // out日志路径
|
// out_file : '', // out日志路径
|
||||||
env: {
|
env: {
|
||||||
|
PORT: 4000,
|
||||||
DEBUG: "colyseus:errors,colyseus:matchmaking,jc:*",
|
DEBUG: "colyseus:errors,colyseus:matchmaking,jc:*",
|
||||||
NODE_ENV: "production",
|
NODE_ENV: "production",
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
port : 2500,
|
|
||||||
name : "card_bot",
|
name : "card_bot",
|
||||||
script : "lib/robot.js", // your entrypoint file
|
script : "lib/robot.js", // your entrypoint file
|
||||||
watch : true, // optional
|
watch : true, // optional
|
||||||
@ -32,6 +35,7 @@ module.exports = {
|
|||||||
// error_file : '', // error日志路径
|
// error_file : '', // error日志路径
|
||||||
// out_file : '', // out日志路径
|
// out_file : '', // out日志路径
|
||||||
env: {
|
env: {
|
||||||
|
PORT: 2500,
|
||||||
DEBUG: "colyseus:errors,jc:*",
|
DEBUG: "colyseus:errors,jc:*",
|
||||||
NODE_ENV: "production",
|
NODE_ENV: "production",
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user