修改了pm2配置文件文件
This commit is contained in:
parent
feb268dc67
commit
98acb57eb1
|
|
@ -0,0 +1,18 @@
|
|||
module.exports = {
|
||||
apps: [
|
||||
{
|
||||
name: 'oak-template-server',
|
||||
script: './scripts/startServer.js',
|
||||
instances: '10',
|
||||
exec_mode: 'cluster',
|
||||
log_date_format: 'YYYY-MM-DD HH:mm:ss Z',
|
||||
increment_var: "OAK_INSTANCE_ID",
|
||||
env: {
|
||||
OAK_PLATFORM: 'server',
|
||||
NODE_ENV: 'production',
|
||||
OAK_INSTANCE_CNT: 10,
|
||||
OAK_INSTANCE_ID: 0,
|
||||
}
|
||||
},
|
||||
],
|
||||
};
|
||||
|
|
@ -0,0 +1,18 @@
|
|||
module.exports = {
|
||||
apps: [
|
||||
{
|
||||
name: 'oak-template-server',
|
||||
script: './scripts/startServer.js',
|
||||
instances: '2',
|
||||
exec_mode: 'cluster',
|
||||
log_date_format: 'YYYY-MM-DD HH:mm:ss Z',
|
||||
increment_var: "OAK_INSTANCE_ID",
|
||||
env: {
|
||||
OAK_PLATFORM: 'server',
|
||||
NODE_ENV: 'staging',
|
||||
OAK_INSTANCE_CNT: 2,
|
||||
OAK_INSTANCE_ID: 0,
|
||||
}
|
||||
},
|
||||
],
|
||||
};
|
||||
Loading…
Reference in New Issue