1 | {
|
2 | "apps" : [
|
3 | {
|
4 | "name" : "code-push-server",
|
5 | "max_memory_restart" : "300M",
|
6 | "script" : "/path/to/code-push-server/bin/www",
|
7 | "instances" : "max", //开启实例数量,max为cpu核数
|
8 | "exec_mode" : "cluster", //集群模式,最大提升网站并发
|
9 | "env" : {
|
10 | "NODE_ENV" : "production",
|
11 | "PORT" : 3000,
|
12 | "CONFIG_FILE" : "/path/to/production/config.js"
|
13 | }
|
14 | }
|
15 | ]
|
16 | } |
\ | No newline at end of file |